From: Toke Høiland-Jørgensen Date: Sun, 17 Mar 2013 15:33:52 +0000 (+0100) Subject: Fix formatting of usec part of timestamp output. X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b6784a4eadde849d0a8112197f030d103284e42;p=fping.git Fix formatting of usec part of timestamp output. --- 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); }