diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-07-20 18:41:39 -0700 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-07-20 18:41:39 -0700 |
commit | 03f8c4d7acd5520f31d38a86d92da05be28be6ba (patch) | |
tree | efe09717ea8717326d9a8c8326361e6d67dd5774 | |
parent | 6a08271922217e1a34be884156d035745893e52f (diff) | |
download | ceph-03f8c4d7acd5520f31d38a86d92da05be28be6ba.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 |