- amok_bw_saturate_stop(h1->name,h1->port,&time1,&bw1);// NULL,NULL);
-
- INFO2("Did an iteration on saturation pair in %ld sec (%.2f simulated sec)",
- time(NULL)-begin, gras_os_time()-begin_simulated);
- INFO2("the duration of the experiment >>>>> %.3f sec (%.3f bandwidth)",time1,bw1);
+ gras_os_sleep(5);
+
+ begin = time(NULL);
+ begin_simulated = gras_os_time();
+ xbt_dynar_foreach(peers, k, h3) {
+ if (i == k || j == k)
+ continue;
+
+ xbt_dynar_foreach(peers, l, h4) {
+ double ratio;
+ if (i == l || j == l || k == l)
+ continue;
+
+ VERB4("TEST %s %s // %s %s",
+ h1->name, h2->name, h3->name, h4->name);
+ amok_bw_request(h3->name, h3->port, h4->name, h4->port,
+ buf_size, msg_size, msg_amount, min_duration,
+ NULL, &(bw_sat[k * nb_peers + l]));
+
+ ratio = bw_sat[k * nb_peers + l] / bw[k * nb_peers + l];
+ INFO8("SATURATED BW XP(%s %s // %s %s) => %f (%f vs %f)%s",
+ h1->name, h2->name, h3->name, h4->name,
+ ratio,
+ bw[k * nb_peers + l], bw_sat[k * nb_peers + l],
+ ratio < 0.7 ? " THERE IS SOME INTERFERENCE !!!" : "");
+ }
+ }
+ amok_bw_saturate_stop(h1->name, h1->port, &time1, &bw1);
+
+ INFO2
+ ("Did an iteration on saturation pair in %ld sec (%.2f simulated sec)",
+ (long int) (time(NULL) - begin),
+ gras_os_time() - begin_simulated);
+ INFO2
+ ("the duration of the experiment >>>>> %.3f sec (%.3f bandwidth)",
+ time1, bw1);