- Macos build fix (#174, thanks @tycho)
- Fix xmt stats in Netdata output (#172, thanks @vlvkobal)
- Only increase num_alive if response is not a duplicate (#151, thanks @brownowski)
+- Use line buffering for stdout (#179, thanks @bg6cq)
fping 4.2 (2019-02-19)
======================
signal(SIGINT, finish);
signal(SIGQUIT, sigstatus);
+ setlinebuf(stdout);
gettimeofday(&start_time, NULL);
current_time = start_time;
HOST_ENTRY* h;
int resp;
- fflush(stdout);
-
if (verbose_flag || per_recv_flag)
fprintf(stderr, "\n");
int i, avg;
HOST_ENTRY* h;
- fflush(stdout);
-
for (i = 0; i < num_hosts; i++) {
h = table[i];
HOST_ENTRY* h;
struct tm* curr_tm;
- fflush(stdout);
-
if (verbose_flag || per_recv_flag)
fprintf(stderr, "\n");
void print_global_stats(void)
{
- fflush(stdout);
fprintf(stderr, "\n");
fprintf(stderr, " %7d targets\n", num_hosts);
fprintf(stderr, " %7d alive\n", num_alive);
remove_job(h);
}
- fflush(stdout);
return num_jobs;
}