Code

Re-implemented `curtime' again. The last revision removed it accidentally..
authorocto <octo>
Tue, 21 Mar 2006 13:08:22 +0000 (13:08 +0000)
committerocto <octo>
Tue, 21 Mar 2006 13:08:22 +0000 (13:08 +0000)
src/collectd.c

index 6513cd4997093107e1b9d9d971edcdd195beb161..5a17124e1daf1b0cc24fa9a38848727f1df4480c 100644 (file)
@@ -191,6 +191,11 @@ static int start_client (void)
 #if HAVE_LIBKSTAT
                update_kstat ();
 #endif
+               /* `curtime' is used by many (all?) plugins as the
+                * data-sample-time passed to RRDTool */
+               curtime = time (NULL);
+
+               /* Issue all plugins */
                plugin_read_all ();
 
                if (gettimeofday (&tv_now, NULL) < 0)