aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-03-12 18:56:51 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-03-12 18:56:51 +0100
commit0ddc742c04538fdd8be51fb1d4dbcbd4309952db (patch)
treeaad3cbbb11ccfc718537fbf5497a17fd0eaf68a9 /include
parent2452247ea33c1c70263bf4cbc11b3170366ff2ea (diff)
downloadbusybox-0ddc742c04538fdd8be51fb1d4dbcbd4309952db.tar.gz
watch: support fractional -n SEC
function old new delta watch_main 212 232 +20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 3366df30f..7a1e13875 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1040,9 +1040,11 @@ uint16_t xatou16(const char *numstr) FAST_FUNC;
#if ENABLE_FLOAT_DURATION
typedef double duration_t;
void sleep_for_duration(duration_t duration) FAST_FUNC;
+#define DURATION_FMT "f"
#else
typedef unsigned duration_t;
#define sleep_for_duration(duration) sleep(duration)
+#define DURATION_FMT "u"
#endif
duration_t parse_duration_str(char *str) FAST_FUNC;