summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-26 23:54:55 +0000
committerStef Walter <stef@memberwebs.com>2006-01-26 23:54:55 +0000
commit965ffa71d8352d53b48d08ffd7fee3e4bcafcfa6 (patch)
treed60a519bef4c0563469b5c2139b2a319bdf0a295
parentb323401a18cd8384ea90157feb876894af379998 (diff)
Add proper support for setting the time when updating RRD.
-rw-r--r--src/rrd-update.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rrd-update.c b/src/rrd-update.c
index e60d6e2..b4be997 100644
--- a/src/rrd-update.c
+++ b/src/rrd-update.c
@@ -82,8 +82,10 @@ void rb_rrd_update(rb_poller *poll)
return;
}
- /* Build our arguments */
- strlcpy(items, "N:", ilen);
+ /* Put in the right time */
+ snprintf(items, ilen, "%lld:", (poll->last_polled / 1000L));
+
+ /* Build the rest of the arguments */
for(it = poll->items; it; it = it->next)
{
if(it != poll->items)