diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-10-06 08:50:01 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-10-06 08:50:01 +0200 |
commit | 69a852f567ab20358fe21b7815626c27a4214b42 (patch) | |
tree | a17a4ebab9933bd4e024bab96236d0d53215045f /mutex.c | |
parent | b767c7f8e3fd8efff51debe39149c65028cf963d (diff) | |
download | fio-69a852f567ab20358fe21b7815626c27a4214b42.tar.gz |
Fix wrong clock source in mutex
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mutex.c')
-rw-r--r-- | mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ int fio_mutex_down_timeout(struct fio_mutex *mutex, unsigned int seconds) struct timespec t; int ret = 0; - clock_gettime(CLOCK_REALTIME, &t); + clock_gettime(CLOCK_MONOTONIC, &t); t.tv_sec += seconds; pthread_mutex_lock(&mutex->lock); |