|
|
@ -1281,13 +1281,6 @@ void main_loop()
|
|
|
|
timeval_add(&next_report_time, report_interval);
|
|
|
|
timeval_add(&next_report_time, report_interval);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (reachable_flag) {
|
|
|
|
|
|
|
|
if ((num_hosts-num_unreachable >= reachable)) {
|
|
|
|
|
|
|
|
printf(">=%d hosts are reachable\n", reachable);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
printf("<%d hosts are reachable\n", reachable);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
/************************************************************
|
|
|
@ -1329,6 +1322,14 @@ void finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (reachable_flag) {
|
|
|
|
|
|
|
|
if ((num_hosts-num_unreachable >= reachable)) {
|
|
|
|
|
|
|
|
printf(">=%d hosts are reachable\n", reachable);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
printf("<%d hosts are reachable\n", reachable);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (count_flag || loop_flag)
|
|
|
|
if (count_flag || loop_flag)
|
|
|
|
print_per_system_stats();
|
|
|
|
print_per_system_stats();
|
|
|
|
#if defined(DEBUG) || defined(_DEBUG)
|
|
|
|
#if defined(DEBUG) || defined(_DEBUG)
|
|
|
|