summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-21 08:50:06 +0000
committerDenis Vlasenko2008-03-21 08:50:06 +0000
commit9924ce1cdcb6e4ab9635d6370ff7db6219c56094 (patch)
tree519c1bd5ff03997c9b11ceb7972da7467e44ea48 /networking
parent80297d5f0cbe8a3de497804dcbb1a89e6f9c1562 (diff)
downloadbusybox-9924ce1cdcb6e4ab9635d6370ff7db6219c56094.zip
busybox-9924ce1cdcb6e4ab9635d6370ff7db6219c56094.tar.gz
apply four post-1.8.2 patches; bump to 1.8.31_8_3
Diffstat (limited to 'networking')
-rw-r--r--networking/arping.c3
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");
}