X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6813c4e4f32c6c32a3b2ab0537e188270bc83a3a..989ba32a142691acd6c1efb0227a94e516b9b94d:/src/amok/Bandwidth/bandwidth.c diff --git a/src/amok/Bandwidth/bandwidth.c b/src/amok/Bandwidth/bandwidth.c index 912cf65427..6811ee0e49 100644 --- a/src/amok/Bandwidth/bandwidth.c +++ b/src/amok/Bandwidth/bandwidth.c @@ -211,10 +211,9 @@ void amok_bw_test(gras_socket_t peer, request->exp_size, request->msg_size, nb_messages, ((double)request->exp_size) / *sec/1024); - if (request->exp_size > request->msg_size * nb_messages) - CRITICAL0("overflow on the experiment size! You must have a *really* fat pipe. Please fix your platform"); - else - request->exp_size = request->msg_size * nb_messages; + xbt_assert0(request->exp_size > request->msg_size * nb_messages, + "Overflow on the experiment size! You must have a *really* fat pipe. Please fix your platform"); + request->exp_size = request->msg_size * nb_messages; gras_msg_rpccall(peer, 60, gras_msgtype_by_name("BW reask"),&request, NULL);