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 6513cd4..5a17124 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)