]> git.gsnw.org Git - fping.git/commitdiff
Fix formatting of usec part of timestamp output.
authorToke Høiland-Jørgensen <toke@toke.dk>
Sun, 17 Mar 2013 15:33:52 +0000 (16:33 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Sun, 17 Mar 2013 15:33:52 +0000 (16:33 +0100)
src/fping.c

index 0a776ae735f5a0ea703b2861d0167a3e5bf42632..7b48a28b11228a3194ef14b1fda69575ad803561 100644 (file)
@@ -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);
         }