Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jan 8, 2015

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 35326842297205554a9005723309bed565594c8a:

Adjust ctime_r buf down to 32 (2015-01-06 12:03:09 -0700)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 36bb0880c7f7f48abb86e3a16d3168343dda9b75:

Fix disk utils being updated too often (2015-01-07 15:04:39 -0700)

----------------------------------------------------------------
Jens Axboe (1):
Fix disk utils being updated too often

 backend.c |    7 -------
 1 file changed, 7 deletions(-)

---

Diff of recent changes:

backend.c +0 -7
index 3df0133..efabfa7 100644
@@ -2104,18 +2104,11 @@ static void *helper_thread_main(void *data)
 		uint64_t sec = DISK_UTIL_MSEC / 1000;
 		uint64_t nsec = (DISK_UTIL_MSEC % 1000) * 1000000;
 		struct timespec ts;
-
-#if defined(CONFIG_CLOCK_MONOTONIC)
-		clock_gettime(CLOCK_MONOTONIC, &ts);
-		ts.tv_sec += sec;
-		ts.tv_nsec += nsec;
-#else
 		struct timeval tv;
 
 		gettimeofday(&tv, NULL);
 		ts.tv_sec = tv.tv_sec + sec;
 		ts.tv_nsec = (tv.tv_usec * 1000) + nsec;
-#endif
 
 		if (ts.tv_nsec >= 1000000000ULL) {
 			ts.tv_nsec -= 1000000000ULL;