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
snake case another plugin
[simgrid.git]
/
src
/
surf
/
cpu_ti.cpp
diff --git
a/src/surf/cpu_ti.cpp
b/src/surf/cpu_ti.cpp
index
d15f1d2
..
519bf98
100644
(file)
--- a/
src/surf/cpu_ti.cpp
+++ b/
src/surf/cpu_ti.cpp
@@
-313,9
+313,9
@@
CpuTiModel::~CpuTiModel()
surf_cpu_model_pm = nullptr;
}
surf_cpu_model_pm = nullptr;
}
-Cpu
*CpuTiModel::createCpu(simgrid::s4u::Host *host, std::vector<double>* speedPerP
state, int core)
+Cpu
* CpuTiModel::create_cpu(simgrid::s4u::Host* host, std::vector<double>* speed_per_p
state, int core)
{
{
- return new CpuTi(this, host, speed
PerP
state, core);
+ return new CpuTi(this, host, speed
_per_p
state, core);
}
double CpuTiModel::next_occuring_event(double now)
}
double CpuTiModel::next_occuring_event(double now)
@@
-402,10
+402,10
@@
void CpuTi::apply_event(tmgr_trace_event_t event, double value)
tmgr_trace_event_unref(&speed_.event);
tmgr_trace_event_unref(&speed_.event);
- } else if (event == state
E
vent_) {
+ } else if (event == state
_e
vent_) {
if (value > 0) {
if (is_off())
if (value > 0) {
if (is_off())
- host_that_restart.push_back(get
H
ost());
+ host_that_restart.push_back(get
_h
ost());
turn_on();
} else {
turn_off();
turn_on();
} else {
turn_off();
@@
-422,7
+422,7
@@
void CpuTi::apply_event(tmgr_trace_event_t event, double value)
}
}
}
}
}
}
- tmgr_trace_event_unref(&state
E
vent_);
+ tmgr_trace_event_unref(&state
_e
vent_);
} else {
xbt_die("Unknown event!\n");
} else {
xbt_die("Unknown event!\n");
@@
-494,10
+494,10
@@
bool CpuTi::is_used()
return not action_set_.empty();
}
return not action_set_.empty();
}
-double CpuTi::get_
available_speed
()
+double CpuTi::get_
speed_ratio
()
{
speed_.scale = speed_integrated_trace_->get_power_scale(surf_get_clock());
{
speed_.scale = speed_integrated_trace_->get_power_scale(surf_get_clock());
- return Cpu::get_
available_speed
();
+ return Cpu::get_
speed_ratio
();
}
/** @brief Update the remaining amount of actions */
}
/** @brief Update the remaining amount of actions */