]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Use CLOCK_REALTIME for collectd-tg times (fixes issue 2219) 2837/head
authorAndrew Bays <abays@redhat.com>
Mon, 25 Jun 2018 14:12:07 +0000 (10:12 -0400)
committerAndrew Bays <abays@redhat.com>
Mon, 25 Jun 2018 14:12:07 +0000 (10:12 -0400)
src/collectd-tg.c

index 48f2dc43cde3851adee94fd86c389ea26ea78a75..511cf5bf946e61db82761efc34282178ea24dbfe 100644 (file)
@@ -104,7 +104,7 @@ static double dtime(void) /* {{{ */
 {
   struct timespec ts = {0};
 
-  if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
+  if (clock_gettime(CLOCK_REALTIME, &ts) != 0)
     perror("clock_gettime");
 
   return (double)ts.tv_sec + (double)ts.tv_nsec / 1e9;