X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/857e3b2171472a3d6db57944a99f8986aff18b0a..a92d7b716f51a53dea7f59db8524d4add713b910:/src/surf/fair_bottleneck.cpp diff --git a/src/surf/fair_bottleneck.cpp b/src/surf/fair_bottleneck.cpp index 270a399737..1b2582bdcc 100644 --- a/src/surf/fair_bottleneck.cpp +++ b/src/surf/fair_bottleneck.cpp @@ -33,7 +33,7 @@ void bottleneck_solve(lmm_system_t sys) static s_xbt_swag_t cnst_to_update; - if (!(sys->modified)) + if (not sys->modified) return; /* Init */ @@ -100,9 +100,9 @@ void bottleneck_solve(lmm_system_t sys) nb++; } XBT_DEBUG("\tThere are %d variables", nb); - if (nb > 0 && !cnst->sharing_policy) + if (nb > 0 && not cnst->sharing_policy) nb = 1; - if (!nb) { + if (not nb) { cnst->remaining = 0.0; cnst->usage = cnst->remaining; xbt_swag_remove(cnst, cnst_list); @@ -147,7 +147,7 @@ void bottleneck_solve(lmm_system_t sys) cnst->usage = MIN(cnst->usage, elem->value * elem->variable->mu); } } - if (!cnst->sharing_policy) { + if (not cnst->sharing_policy) { XBT_DEBUG("\tUpdate constraint %p (%g) by %g", cnst, cnst->remaining, cnst->usage); double_update(&(cnst->remaining), cnst->usage, sg_maxmin_precision);