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
Add limiter and loopback link support in fat trees
[simgrid.git]
/
src
/
surf
/
surf_interface.cpp
diff --git
a/src/surf/surf_interface.cpp
b/src/surf/surf_interface.cpp
index
90ad51c
..
52b1722
100644
(file)
--- a/
src/surf/surf_interface.cpp
+++ b/
src/surf/surf_interface.cpp
@@
-1028,7
+1028,7
@@
void Action::updateRemainingLazy(double now)
{
double delta = 0.0;
- if(getModel() == s
tatic_cast<ModelPtr>(surf_network_model)
)
+ if(getModel() == s
urf_network_model
)
{
if (m_suspended != 0)
return;
@@
-1050,7
+1050,7
@@
void Action::updateRemainingLazy(double now)
double_update(&m_remains, m_lastValue * delta, sg_surf_precision*sg_maxmin_precision);
#ifdef HAVE_TRACING
- if (getModel() == s
tatic_cast<ModelPtr>(surf_cpu_model_pm)
&& TRACE_is_enabled()) {
+ if (getModel() == s
urf_cpu_model_pm
&& TRACE_is_enabled()) {
ResourcePtr cpu = static_cast<ResourcePtr>(lmm_constraint_id(lmm_get_cnst_from_var(getModel()->getMaxminSystem(), getVariable(), 0)));
TRACE_surf_host_set_utilization(cpu->getName(), getCategory(), m_lastValue, m_lastUpdate, now - m_lastUpdate);
}
@@
-1058,7
+1058,7
@@
void Action::updateRemainingLazy(double now)
XBT_DEBUG("Updating action(%p): remains is now %f", this, m_remains);
}
- if(getModel() == s
tatic_cast<ModelPtr>(surf_network_model)
)
+ if(getModel() == s
urf_network_model
)
{
if (m_maxDuration != NO_MAX_DURATION)
double_update(&m_maxDuration, delta, sg_surf_precision);