A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[HostLoad] Load is currently 0 because of integer division. Fix that.
[simgrid.git]
/
src
/
surf
/
plugins
/
host_load.cpp
diff --git
a/src/surf/plugins/host_load.cpp
b/src/surf/plugins/host_load.cpp
index
9b2a880
..
ebe41f4
100644
(file)
--- a/
src/surf/plugins/host_load.cpp
+++ b/
src/surf/plugins/host_load.cpp
@@
-76,7
+76,7
@@
void HostLoad::update()
double HostLoad::getCurrentLoad()
{
double HostLoad::getCurrentLoad()
{
- return current_flops / (host->getSpeed() * host->getCoreCount());
+ return current_flops /
static_cast<double>
(host->getSpeed() * host->getCoreCount());
}
double HostLoad::getAverageLoad()
}
double HostLoad::getAverageLoad()