extend fractional duration support to "top -d N.N" and "timeout"
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 3 Aug 2018 16:17:12 +0000 (18:17 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 3 Aug 2018 16:17:12 +0000 (18:17 +0200)
commit4c20d9f2b0223874e2b5ac1235d5f33fdd02589b
treee533a2de1fe3e146bb1dcd410e7c6ff6b68fa0a6
parent9b1c8bf89be668a533505e5fb4405bac6eed651c
extend fractional duration support to "top -d N.N" and "timeout"

function                                             old     new   delta
parse_duration_str                                     -     168    +168
sleep_for_duration                                     -     157    +157
top_main                                             885     928     +43
timeout_main                                         269     312     +43
handle_input                                         571     614     +43
duration_suffixes                                      -      40     +40
sfx                                                   40       -     -40
sleep_main                                           364      79    -285
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 3/1 up/down: 494/-325)          Total: 169 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/sleep.c
coreutils/timeout.c
include/libbb.h
libbb/duration.c [new file with mode: 0644]
procps/top.c