From 965ffa71d8352d53b48d08ffd7fee3e4bcafcfa6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 26 Jan 2006 23:54:55 +0000 Subject: Add proper support for setting the time when updating RRD. --- src/rrd-update.c | 6 ++++-- 1 file 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) -- cgit v1.2.3