diff options
Diffstat (limited to 'networking')
| -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 44615d5b1..a8ee9bf39 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) | |||
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | if (last) { | 209 | if (last) { |
| 210 | printf(" %u.%03ums\n", last / 1000, last % 1000); | 210 | unsigned diff = MONOTONIC_US() - last; |
| 211 | printf(" %u.%03ums\n", diff / 1000, diff % 1000); | ||
| 211 | } else { | 212 | } else { |
| 212 | printf(" UNSOLICITED?\n"); | 213 | printf(" UNSOLICITED?\n"); |
| 213 | } | 214 | } |
