aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-11-29 12:40:25 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-29 12:40:25 +0100
commit6a55b4e403979ba299261816a7ec1bb55bbf3f2b (patch)
treed8eba6a7c1483c33547549b07081e9549baa094c /networking
parentb86a9ed699e2c4693167d6ead00ac307bd9c01c6 (diff)
downloadbusybox-6a55b4e403979ba299261816a7ec1bb55bbf3f2b.tar.gz
libbb: introduce and use msleep()
function old new delta msleep - 45 +45 watchdog_main 271 266 -5 common_traceroute_main 3546 3530 -16 beep_main 277 248 -29 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 45/-50) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/traceroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 1c4dc3e4a..34d2a09dd 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -1071,7 +1071,7 @@ common_traceroute_main(int op, char **argv)
fflush_all();
if (probe != 0 && pausemsecs > 0)
- usleep(pausemsecs * 1000);
+ msleep(pausemsecs);
send_probe(++seq, ttl);
t2 = t1 = monotonic_us();