diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-07-20 18:41:39 -0700 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-09-17 10:14:39 -0700 |
commit | b5c62eabd1de86dce7a23b3223070ebc0e70254d (patch) | |
tree | 9cb7637b177262559516d656f62d1f3703d9f35a | |
parent | 00493af984ca4fa4d534fe7d2ab710147a60e087 (diff) | |
download | ceph-b5c62eabd1de86dce7a23b3223070ebc0e70254d.tar.gz |
utime: use to_timespec for conversion
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r-- | src/include/utime.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/utime.h b/src/include/utime.h index e1346059306..5bebc70a342 100644 --- a/src/include/utime.h +++ b/src/include/utime.h @@ -138,8 +138,9 @@ public: } void sleep() { - struct timespec ts = { (__time_t)tv.tv_sec, (long)tv.tv_nsec }; - nanosleep(&ts, &ts); + struct timespec ts; + to_timespec(&ts); + nanosleep(&ts, NULL); } // output |