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
stringify a bit
[simgrid.git]
/
src
/
surf
/
HostImpl.cpp
diff --git
a/src/surf/HostImpl.cpp
b/src/surf/HostImpl.cpp
index
6d88f27
..
f3530f5
100644
(file)
--- a/
src/surf/HostImpl.cpp
+++ b/
src/surf/HostImpl.cpp
@@
-29,7
+29,7
@@
namespace surf {
void HostModel::ignoreEmptyVmInPmLMM()
{
/* iterate for all virtual machines */
void HostModel::ignoreEmptyVmInPmLMM()
{
/* iterate for all virtual machines */
- for (s4u::VirtualMachine* ws_vm : vm::VirtualMachineImpl::allVms_) {
+ for (s4u::VirtualMachine*
const&
ws_vm : vm::VirtualMachineImpl::allVms_) {
Cpu* cpu = ws_vm->pimpl_cpu;
int active_tasks = lmm_constraint_get_variable_amount(cpu->constraint());
Cpu* cpu = ws_vm->pimpl_cpu;
int active_tasks = lmm_constraint_get_variable_amount(cpu->constraint());
@@
-102,7
+102,7
@@
HostImpl::HostImpl(s4u::Host* host) : piface_(host)
void HostImpl::getAttachedStorageList(std::vector<const char*>* storages)
{
void HostImpl::getAttachedStorageList(std::vector<const char*>* storages)
{
- for (auto s : storage_)
+ for (auto
const&
s : storage_)
if (s.second->getHost() == piface_->getCname())
storages->push_back(s.second->piface_.getName());
}
if (s.second->getHost() == piface_->getCname())
storages->push_back(s.second->piface_.getName());
}