- begin=time(NULL);
- begin_simulated=gras_os_time();
- xbt_dynar_foreach(hosts,k,h3) {
- if (i==k || j==k) continue;
-
- xbt_dynar_foreach(hosts,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,exp_size,msg_size,min_duration,
- NULL,&(bw_sat[k*nb_hosts + l]));
-
- ratio=bw_sat[k*nb_hosts + l] / bw[k*nb_hosts + 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_hosts + l] , bw_sat[k*nb_hosts + l],
- ratio < 0.7 ? " THERE IS SOME INTERFERENCE !!!": "");
- }
+ 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 !!!" : "");
+ }