commit | d481e00608dc118e646b6fee9c9292c1ab35448f | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Fri Dec 04 09:56:32 2009 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Fri Dec 04 09:56:32 2009 +0100 |
tree | b93fdd61c496de32036f6dc1bbb25334ddaaf901 | |
parent | c5c8bd5c9b265df2c7feb386b5c1fba0a5a34eec [diff] [blame] |
Move back to realtime clock On some systems MONOTONIC still causes a hang. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/gettime.c b/gettime.c index b1431f3..c0d27e4 100644 --- a/gettime.c +++ b/gettime.c
@@ -130,7 +130,7 @@ } else { struct timespec ts; - if (clock_gettime(CLOCK_MONOTONIC, &ts) < 0) { + if (clock_gettime(CLOCK_REALTIME, &ts) < 0) { clock_gettime_works = 0; goto gtod; }