~ubuntu-branches/ubuntu/precise/simgrid/precise

« back to all changes in this revision

Viewing changes to src/amok/Bandwidth/saturate.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Quinson
  • Date: 2011-06-27 14:08:39 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110627140839-vg42pln158x0z8iq
Tags: 3.6.1-1
new upstream version (bug fix on MacOSX: no change for us)

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
    meas = gras_socket_meas_accept(measMaster);
295
295
    XBT_DEBUG("saturation handshake answered");
296
296
  }
297
 
  CATCH(e) {
 
297
  CATCH_ANONYMOUS {
298
298
    gras_socket_close(measMaster);
299
299
    RETHROWF("Error during saturation handshake: %s");
300
300
  }
330
330
void amok_bw_saturate_stop(const char *from_name, unsigned int from_port,
331
331
                           /*out */ double *time, double *bw)
332
332
{
333
 
  xbt_ex_t e;
334
 
 
335
333
  gras_socket_t sock = gras_socket_client(from_name, from_port);
336
334
  bw_res_t answer;
337
335
  XBT_VERB("Ask %s:%d to stop the saturation", from_name, from_port);
338
336
  TRY {
339
337
    gras_msg_rpccall(sock, 60, "amok_bw_sat stop", NULL, &answer);
340
 
  } CATCH(e) {
341
 
    RETHROWF("Cannot ask %s:%d to stop saturation: %s", from_name,
342
 
             from_port);
 
338
  }
 
339
  CATCH_ANONYMOUS {
 
340
    RETHROWF("Cannot ask %s:%d to stop saturation: %s", from_name, from_port);
343
341
  }
344
342
  gras_socket_close(sock);
345
343
  if (time)