X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73049fc3c9c1159f15d39ff550712a8c9a8f6ebb..e50b221720063e905ae82431786e26edaf4fda0d:/src/surf/network_ib.cpp diff --git a/src/surf/network_ib.cpp b/src/surf/network_ib.cpp index 0cf97adbb3..f0b33205bd 100644 --- a/src/surf/network_ib.cpp +++ b/src/surf/network_ib.cpp @@ -159,9 +159,9 @@ namespace simgrid { if((*it)->init_rate==-1) (*it)->init_rate= rate_before_update; - penalized_bw= ! num_comm_out ? (*it)->init_rate : (*it)->init_rate /penalty; + penalized_bw = num_comm_out ? (*it)->init_rate / penalty : (*it)->init_rate; - if (!double_equals(penalized_bw, rate_before_update, sg_surf_precision)){ + if (not double_equals(penalized_bw, rate_before_update, sg_surf_precision)) { XBT_DEBUG("%d->%d action %p penalty updated : bw now %f, before %f , initial rate %f", root->id,(*it)->destination->id,(*it)->action,penalized_bw, (*it)->action->getBound(), (*it)->init_rate ); lmm_update_variable_bound(maxminSystem_, (*it)->action->getVariable(), penalized_bw); }else{