diff options
author | Robert Swiecki <robert@swiecki.net> | 2019-04-01 15:40:19 +0200 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2019-04-01 15:40:19 +0200 |
commit | aa5c90b8d38754b6c2835cb92f1a9e4fa9d6a998 (patch) | |
tree | 6e4eeedf3bf76af2e35eac839d2443aef02eb847 /libhfcommon | |
parent | e3d734f3442031fd8fe187226ffc4cb06873a1e2 (diff) | |
download | honggfuzz-aa5c90b8d38754b6c2835cb92f1a9e4fa9d6a998.tar.gz |
libhfcommon: convert msec to nsec
Diffstat (limited to 'libhfcommon')
-rw-r--r-- | libhfcommon/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhfcommon/util.c b/libhfcommon/util.c index c8616676..77d53672 100644 --- a/libhfcommon/util.c +++ b/libhfcommon/util.c @@ -250,7 +250,7 @@ void util_sleepForMSec(uint64_t msec) { } struct timespec ts = { .tv_sec = msec / 1000U, - .tv_nsec = msec % 1000U, + .tv_nsec = (msec % 1000U) * 1000000U, }; TEMP_FAILURE_RETRY(nanosleep(&ts, &ts)); } |