diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 2cf7340..9050e75 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -1966,7 +1966,7 @@ static int s3fs_utimens(const char* _path, const struct timespec ts[2]) } struct timespec now; - if(-1 == clock_gettime(static_cast(CLOCK_MONOTONIC_COARSE), &now)){ + if(-1 == clock_gettime(static_cast(CLOCK_REALTIME), &now)){ abort(); } #if __APPLE__ @@ -2088,7 +2088,7 @@ static int s3fs_utimens_nocopy(const char* _path, const struct timespec ts[2]) } struct timespec now; - if(-1 == clock_gettime(static_cast(CLOCK_MONOTONIC_COARSE), &now)){ + if(-1 == clock_gettime(static_cast(CLOCK_REALTIME), &now)){ abort(); } #if __APPLE__