Code

Changed the max value of cache_size in types.db to handle boxes with large amounts...
[collectd.git] / src / collectd-tg.c
index 760162c7ec025a7266544de893b207a4332a13fa..80473e0ef79816fe53becb2ab41f4f86c5c86715 100644 (file)
@@ -105,7 +105,7 @@ static double dtime (void) /* {{{ */
   struct timespec ts = { 0 };
 
   if (clock_gettime (CLOCK_MONOTONIC, &ts) != 0)
-    return NAN;
+    perror ("clock_gettime");
 
   return ((double) ts.tv_sec) + (((double) ts.tv_nsec) / 1e9);
 } /* }}} double dtime */