Merge pull request #229 from gsnw/bug/219

use formatstring macro PRId64 in print_netdata for output int64_t
pull/217/head
David Schweikert 3 years ago committed by GitHub
commit 03aea81617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1699,9 +1699,9 @@ void print_netdata(void)
printf("BEGIN fping.%s_latency\n", h->name);
if (h->num_recv_i) {
avg = h->total_time_i / h->num_recv_i;
printf("SET min = %ld\n", h->min_reply_i);
printf("SET avg = %ld\n", avg);
printf("SET max = %ld\n", h->max_reply_i);
printf("SET min = %" PRId64 "\n", h->min_reply_i);
printf("SET avg = %" PRId64 "\n", avg);
printf("SET max = %" PRId64 "\n", h->max_reply_i);
}
printf("END\n");

Loading…
Cancel
Save