diff options
author | Petr Vorel <pvorel@suse.cz> | 2023-11-03 23:14:00 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-11-07 18:59:09 +0300 |
commit | d17c0a348fc10897d86e0e96aa98be5ac88d6fdd (patch) | |
tree | aa2b46dda1d9073dfaba9413159f537b656e13f4 /coreutils | |
parent | da8d1d84fd46e61eec0772ff339fde0952777a5f (diff) |
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>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/sleep.c | 15 |
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 @@ //config: default y //config: help //config: sleep is used to pause for a specified number of seconds. -//config: It comes in 3 versions: +//config: It comes in 2 versions: //config: - small: takes one integer parameter -//config: - fancy: takes multiple integer arguments with suffixes: -//config: sleep 1d 2h 3m 15s -//config: - fancy with fractional numbers: -//config: sleep 2.3s 4.5h sleeps for 16202.3 seconds -//config: Last one is "the most compatible" with coreutils sleep, -//config: but it adds around 1k of code. +//config: - fancy: +//config: * takes multiple integer arguments with suffixes: +//config: sleep 1d 2h 3m 15s +//config: * allows fractional numbers: +//config: sleep 2.3s 4.5h sleeps for 16202.3 seconds +//config: fancy is more compatible with coreutils sleep, but it adds around +//config: 1k of code. //config: //config:config FEATURE_FANCY_SLEEP //config: bool "Enable multiple arguments and s/m/h/d suffixes" |