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
better message for this exception
[simgrid.git]
/
src
/
surf
/
network_interface.cpp
diff --git
a/src/surf/network_interface.cpp
b/src/surf/network_interface.cpp
index
6d2a96e
..
9bdcd82
100644
(file)
--- a/
src/surf/network_interface.cpp
+++ b/
src/surf/network_interface.cpp
@@
-126,7
+126,7
@@
s4u::Link::SharingPolicy LinkImpl::get_sharing_policy()
void LinkImpl::turn_on()
{
void LinkImpl::turn_on()
{
- if (
is_off
()) {
+ if (
not is_on
()) {
Resource::turn_on();
s4u::Link::on_state_change(this->piface_);
}
Resource::turn_on();
s4u::Link::on_state_change(this->piface_);
}