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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
surf
/
ptask_L07.cpp
diff --git
a/src/surf/ptask_L07.cpp
b/src/surf/ptask_L07.cpp
index
8e90e06
..
0071859
100644
(file)
--- a/
src/surf/ptask_L07.cpp
+++ b/
src/surf/ptask_L07.cpp
@@
-273,7
+273,7
@@
LinkL07::LinkL07(NetworkL07Model* model, const char* name, double bandwidth, dou
if (policy == SURF_LINK_FATPIPE)
lmm_constraint_shared(constraint());
if (policy == SURF_LINK_FATPIPE)
lmm_constraint_shared(constraint());
- s4u::Link::onCreation(this);
+ s4u::Link::onCreation(this
->piface_
);
}
Action *CpuL07::execution_start(double size)
}
Action *CpuL07::execution_start(double size)
@@
-394,14
+394,12
@@
L07Action::~L07Action(){
void L07Action::updateBound()
{
double lat_current = 0.0;
void L07Action::updateBound()
{
double lat_current = 0.0;
- double lat_bound = -1.0;
- int i, j;
int hostNb = hostList_->size();
if (communicationAmount_ != nullptr) {
int hostNb = hostList_->size();
if (communicationAmount_ != nullptr) {
- for (i = 0; i < hostNb; i++) {
- for (j = 0; j < hostNb; j++) {
+ for (i
nt i
= 0; i < hostNb; i++) {
+ for (
int
j = 0; j < hostNb; j++) {
if (communicationAmount_[i * hostNb + j] > 0) {
double lat = 0.0;
if (communicationAmount_[i * hostNb + j] > 0) {
double lat = 0.0;
@@
-413,7
+411,7
@@
void L07Action::updateBound()
}
}
}
}
}
}
- lat_bound = sg_tcp_gamma / (2.0 * lat_current);
+
double
lat_bound = sg_tcp_gamma / (2.0 * lat_current);
XBT_DEBUG("action (%p) : lat_bound = %g", this, lat_bound);
if ((latency_ == 0.0) && (suspended_ == 0)) {
if (rate_ < 0)
XBT_DEBUG("action (%p) : lat_bound = %g", this, lat_bound);
if ((latency_ == 0.0) && (suspended_ == 0)) {
if (rate_ < 0)