summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1061f21)
raw | patch | inline | side by side (parent: 1061f21)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 1 Jul 2009 14:58:52 +0000 (16:58 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 1 Jul 2009 14:58:52 +0000 (16:58 +0200) |
src/rrdcached.c | patch | blob | history | |
src/rrdtool.c | patch | blob | history | |
src/utils_rrdcreate.c | patch | blob | history |
diff --git a/src/rrdcached.c b/src/rrdcached.c
index 6295a53f79d39b67670de86066495790766a08fe..8755400b7debcea38742c6d24ba56e69201e793b 100644 (file)
--- a/src/rrdcached.c
+++ b/src/rrdcached.c
else if (ds->ds[i].type == DS_TYPE_GAUGE)
{
status = ssnprintf (buffer + offset, buffer_len - offset,
- ":%lf", vl->values[i].gauge);
+ ":%f", vl->values[i].gauge);
}
else if (ds->ds[i].type == DS_TYPE_DERIVE) {
status = ssnprintf (buffer + offset, buffer_len - offset,
- ":%llu", vl->values[i].derive);
+ ":%"PRIi64, vl->values[i].derive);
}
else /* if (ds->ds[i].type == DS_TYPE_ABSOLUTE) */ {
status = ssnprintf (buffer + offset, buffer_len - offset,
- ":%llu", vl->values[i].absolute);
+ ":%"PRIu64, vl->values[i].absolute);
}
diff --git a/src/rrdtool.c b/src/rrdtool.c
index a361501d0ff1a8e596143d2326684b3d409d86fb..c63f883afea9b86d8138472230b0f7fa3d1e8999 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
":%lf", vl->values[i].gauge);
else if (ds->ds[i].type == DS_TYPE_DERIVE)
status = ssnprintf (buffer + offset, buffer_len - offset,
- ":%llu", vl->values[i].derive);
+ ":%"PRIi64, vl->values[i].derive);
else /*if (ds->ds[i].type == DS_TYPE_ABSOLUTE) */
status = ssnprintf (buffer + offset, buffer_len - offset,
- ":%llu", vl->values[i].absolute);
+ ":%"PRIu64, vl->values[i].absolute);
if ((status < 1) || (status >= (buffer_len - offset)))
return (-1);
diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c
index 0abbb40b299ad795aa0a59c4a03e5ef9885a4376..4ecec59dae1cdad9d3128b25f241920d888d6fce 100644 (file)
--- a/src/utils_rrdcreate.c
+++ b/src/utils_rrdcreate.c
sstrncpy (min, "U", sizeof (min));
}
else
- ssnprintf (min, sizeof (min), "%lf", d->min);
+ ssnprintf (min, sizeof (min), "%f", d->min);
if (isnan (d->max))
{
sstrncpy (max, "U", sizeof (max));
}
else
- ssnprintf (max, sizeof (max), "%lf", d->max);
+ ssnprintf (max, sizeof (max), "%f", d->max);
status = ssnprintf (buffer, sizeof (buffer),
"DS:%s:%s:%i:%s:%s",