From 5b6784a4eadde849d0a8112197f030d103284e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Sun, 17 Mar 2013 16:33:52 +0100 Subject: [PATCH] Fix formatting of usec part of timestamp output. --- src/fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fping.c b/src/fping.c index 0a776ae..7b48a28 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1829,7 +1829,7 @@ int wait_for_reply(long wait_time) if( per_recv_flag ) { if(timestamp_flag) { - printf("[%lu.%04lu] ", + printf("[%lu.%06lu] ", (unsigned long)current_time.tv_sec, (unsigned long)current_time.tv_usec); }