aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sleep.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-15 22:01:49 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-15 22:01:49 +0000
commit97faf531c81be075ecafb2ac83b17eae78cd2afb (patch)
treeb4e51950da0b124b808242d041927acabe11cc5d /coreutils/sleep.c
parent5e476bab9c6db89dfadc94a8c4fbf3082339fecf (diff)
downloadbusybox-w32-97faf531c81be075ecafb2ac83b17eae78cd2afb.tar.gz
busybox-w32-97faf531c81be075ecafb2ac83b17eae78cd2afb.tar.bz2
busybox-w32-97faf531c81be075ecafb2ac83b17eae78cd2afb.zip
sleep: make fractional seconds separately selectable in .config
Diffstat (limited to 'coreutils/sleep.c')
-rw-r--r--coreutils/sleep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 93b178d76..de18dd0db 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -23,7 +23,7 @@
23/* This is a NOFORK applet. Be very careful! */ 23/* This is a NOFORK applet. Be very careful! */
24 24
25 25
26#if ENABLE_FEATURE_FANCY_SLEEP 26#if ENABLE_FEATURE_FANCY_SLEEP || ENABLE_FEATURE_FLOAT_SLEEP
27static const struct suffix_mult sfx[] = { 27static const struct suffix_mult sfx[] = {
28 { "s", 1 }, 28 { "s", 1 },
29 { "m", 60 }, 29 { "m", 60 },
@@ -36,7 +36,7 @@ static const struct suffix_mult sfx[] = {
36int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 36int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
37int sleep_main(int argc UNUSED_PARAM, char **argv) 37int sleep_main(int argc UNUSED_PARAM, char **argv)
38{ 38{
39#if ENABLE_FEATURE_FANCY_SLEEP && ENABLE_DESKTOP 39#if ENABLE_FEATURE_FLOAT_SLEEP
40 double duration; 40 double duration;
41 struct timespec ts; 41 struct timespec ts;
42#else 42#else
@@ -47,7 +47,7 @@ int sleep_main(int argc UNUSED_PARAM, char **argv)
47 if (!*argv) 47 if (!*argv)
48 bb_show_usage(); 48 bb_show_usage();
49 49
50#if ENABLE_FEATURE_FANCY_SLEEP && ENABLE_DESKTOP 50#if ENABLE_FEATURE_FLOAT_SLEEP
51 51
52 duration = 0; 52 duration = 0;
53 do { 53 do {