From: mquinson Date: Thu, 30 Nov 2006 14:15:24 +0000 (+0000) Subject: whining at CRITICAL level is not enough. Let's kill every body around X-Git-Tag: v3.3~2409 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/989ba32a142691acd6c1efb0227a94e516b9b94d whining at CRITICAL level is not enough. Let's kill every body around git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2950 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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);