aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2023-11-03 21:14:00 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2023-11-07 16:59:09 +0100
commitd17c0a348fc10897d86e0e96aa98be5ac88d6fdd (patch)
treeaa2b46dda1d9073dfaba9413159f537b656e13f4
parentda8d1d84fd46e61eec0772ff339fde0952777a5f (diff)
downloadbusybox-w32-d17c0a348fc10897d86e0e96aa98be5ac88d6fdd.tar.gz
busybox-w32-d17c0a348fc10897d86e0e96aa98be5ac88d6fdd.tar.bz2
busybox-w32-d17c0a348fc10897d86e0e96aa98be5ac88d6fdd.zip
sleep: Update doc
4c20d9f2b removed FEATURE_FLOAT_SLEEP option, thus since then there are only two variants. Fixes: 4c20d9f2b ("extend fractional duration support to "top -d N.N" and "timeout"") Signed-off-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/sleep.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index fa74f1fd4..6fd00f9f1 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -17,14 +17,15 @@
17//config: default y 17//config: default y
18//config: help 18//config: help
19//config: sleep is used to pause for a specified number of seconds. 19//config: sleep is used to pause for a specified number of seconds.
20//config: It comes in 3 versions: 20//config: It comes in 2 versions:
21//config: - small: takes one integer parameter 21//config: - small: takes one integer parameter
22//config: - fancy: takes multiple integer arguments with suffixes: 22//config: - fancy:
23//config: sleep 1d 2h 3m 15s 23//config: * takes multiple integer arguments with suffixes:
24//config: - fancy with fractional numbers: 24//config: sleep 1d 2h 3m 15s
25//config: sleep 2.3s 4.5h sleeps for 16202.3 seconds 25//config: * allows fractional numbers:
26//config: Last one is "the most compatible" with coreutils sleep, 26//config: sleep 2.3s 4.5h sleeps for 16202.3 seconds
27//config: but it adds around 1k of code. 27//config: fancy is more compatible with coreutils sleep, but it adds around
28//config: 1k of code.
28//config: 29//config:
29//config:config FEATURE_FANCY_SLEEP 30//config:config FEATURE_FANCY_SLEEP
30//config: bool "Enable multiple arguments and s/m/h/d suffixes" 31//config: bool "Enable multiple arguments and s/m/h/d suffixes"