elapsed=gras_os_time()-start;
VERB2("elapsed %f duration %f",elapsed, duration);
- } while (duration==0 || (saturate_further && elapsed < duration));
+ } while (saturate_further && (duration!=0 && elapsed < duration));
bw = ((double)(packet_sent*msg_size)) / elapsed;
gras_socket_t sock = gras_socket_client(from_name,from_port);
bw_res_t answer;
+ VERB2("Ask %s:%d to stop the saturation",
+ from_name,from_port);
gras_msg_rpccall(sock,60,gras_msgtype_by_name("amok_bw_sat stop"),NULL,&answer);
gras_socket_close(sock);
if (time) *time=answer->sec;