diff options
Diffstat (limited to 'networking/arping.c')
-rw-r--r-- | networking/arping.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/arping.c b/networking/arping.c index 44615d5..a8ee9bf 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -207,7 +207,8 @@ static int recv_pack(unsigned char *buf, int len, struct sockaddr_ll *FROM) } if (last) { - printf(" %u.%03ums\n", last / 1000, last % 1000); + unsigned diff = MONOTONIC_US() - last; + printf(" %u.%03ums\n", diff / 1000, diff % 1000); } else { printf(" UNSOLICITED?\n"); } |