From 8d6491e0d382a69b3bdc3d4fb16d58ea20e008ea Mon Sep 17 00:00:00 2001 From: octo Date: Tue, 21 Mar 2006 13:08:22 +0000 Subject: [PATCH] Re-implemented `curtime' again. The last revision removed it accidentally.. --- src/collectd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/collectd.c b/src/collectd.c index 6513cd49..5a17124e 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -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) -- 2.11.0