summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2728d7)
raw | patch | inline | side by side (parent: a2728d7)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 13 Jan 2007 17:22:49 +0000 (18:22 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 13 Jan 2007 17:22:49 +0000 (18:22 +0100) |
src/rrdtool.c | patch | blob | history |
diff --git a/src/rrdtool.c b/src/rrdtool.c
index 96eee579c2972430b52f62369b640d6ea98ab034..86cd4e2f187c2a3c87413c463997780673868e4f 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
int i;
memset (buffer, '\0', sizeof (buffer_len));
- buffer[0] = 'N';
- offset = 1;
+
+ status = snprintf (buffer, buffer_len, "%u", (unsigned int) vl->time);
+ if ((status < 1) || (status >= buffer_len))
+ return (-1);
+ offset = status;
for (i = 0; i < ds->ds_num; i++)
{
return (-1);
}
+ DBG ("rrd_update (%s, %s, %s)", argv[0], argv[1], argv[2]);
+
optind = 0; /* bug in librrd? */
rrd_clear_error ();
if (rrd_update (3, argv) == -1)