From: octo Date: Tue, 21 Mar 2006 13:08:22 +0000 (+0000) Subject: Re-implemented `curtime' again. The last revision removed it accidentally.. X-Git-Tag: collectd-3.8.6^2~92^2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=8d6491e0d382a69b3bdc3d4fb16d58ea20e008ea;p=collectd.git Re-implemented `curtime' again. The last revision removed it accidentally.. --- 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)