pkgsrc/databases/rrdtool12/patches/patch-aw
martti c7013e0803 Updated databases/rrdtool12 to 1.2.29
Features:

- a second axis can now be displayed in rrd_graph. look for
  documentation on second-axis. feature was sponsored by VoltWerk.

Bugfixes:

- rrd_fetch: is more careful when seeking. it should not try to seek
  outside the file anymore.

- rrd_graph: CDEF:x= raises an error now and does not segfault

- rrd_graph: --font TITLE:12: problem fixed (affecting cacti)

- rrd_graph: make VDEF work with SHIFT (bug #177)

- rrd_xport: make it work when exporting datasources without
             uniform step size.

- rrd_tool:  rely on function return values and not on errno.  (bug #176)
2009-01-02 20:07:10 +00:00

27 lines
1.3 KiB
Text

$NetBSD: patch-aw,v 1.2 2009/01/02 20:07:10 martti Exp $
Adjust for pkgsrc.
--- src/rrd_tool.c.orig 2008-12-16 00:05:13.000000000 +0200
+++ src/rrd_tool.c 2009-01-02 21:37:38.000000000 +0200
@@ -697,9 +697,9 @@
printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n\n", XML_ENCODING);
printf("<%s>\n", ROOT_TAG);
printf(" <%s>\n", META_TAG);
- printf(" <%s>%lu</%s>\n", META_START_TAG, start+step, META_START_TAG);
+ printf(" <%s>%lu</%s>\n", META_START_TAG, (unsigned long) start+step, META_START_TAG);
printf(" <%s>%lu</%s>\n", META_STEP_TAG, step, META_STEP_TAG);
- printf(" <%s>%lu</%s>\n", META_END_TAG, end, META_END_TAG);
+ printf(" <%s>%lu</%s>\n", META_END_TAG, (unsigned long) end, META_END_TAG);
printf(" <%s>%lu</%s>\n", META_ROWS_TAG, row_cnt, META_ROWS_TAG);
printf(" <%s>%lu</%s>\n", META_COLS_TAG, col_cnt, META_COLS_TAG);
printf(" <%s>\n", LEGEND_TAG);
@@ -715,7 +715,7 @@
printf(" <%s>\n", DATA_TAG);
for (ti = start+step; ti <= end; ti += step) {
printf (" <%s>", DATA_ROW_TAG);
- printf ("<%s>%lu</%s>", COL_TIME_TAG, ti, COL_TIME_TAG);
+ printf ("<%s>%lu</%s>", COL_TIME_TAG, (unsigned long) ti, COL_TIME_TAG);
for (j = 0; j < col_cnt; j++) {
rrd_value_t newval = DNAN;
if (enumds == 1)