use formatstring macro PRId64 in print_netdata for output int64_t

pull/229/head
German Service Network 3 years ago
parent b4aeda17fd
commit ea0eda41f1

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

Loading…
Cancel
Save