summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-aw
diff options
context:
space:
mode:
Diffstat (limited to 'databases/rrdtool/patches/patch-aw')
-rw-r--r--databases/rrdtool/patches/patch-aw19
1 files changed, 5 insertions, 14 deletions
diff --git a/databases/rrdtool/patches/patch-aw b/databases/rrdtool/patches/patch-aw
index 1eacac2669a..8697928949d 100644
--- a/databases/rrdtool/patches/patch-aw
+++ b/databases/rrdtool/patches/patch-aw
@@ -1,17 +1,8 @@
-$NetBSD: patch-aw,v 1.6 2006/07/22 07:37:07 adam Exp $
+$NetBSD: patch-aw,v 1.7 2007/01/30 13:26:55 adam Exp $
---- src/rrd_tool.c.orig 2006-07-14 14:11:26.000000000 +0200
+--- src/rrd_tool.c.orig 2007-01-23 21:54:49.000000000 +0100
+++ src/rrd_tool.c
-@@ -619,7 +619,7 @@ int HandleInputLine(int argc, char **arg
- else if (strcmp("resize", argv[1]) == 0)
- rrd_resize(argc-1, &argv[1]);
- else if (strcmp("last", argv[1]) == 0)
-- printf("%ld\n",rrd_last(argc-1, &argv[1]));
-+ printf("%ld\n",(long) rrd_last(argc-1, &argv[1]));
- else if (strcmp("first", argv[1]) == 0)
- printf("%ld\n",rrd_first(argc-1, &argv[1]));
- else if (strcmp("update", argv[1]) == 0)
-@@ -659,9 +659,9 @@ int HandleInputLine(int argc, char **arg
+@@ -702,9 +702,9 @@ int HandleInputLine(int argc, char **arg
printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n\n", XML_ENCODING);
printf("<%s>\n", ROOT_TAG);
printf(" <%s>\n", META_TAG);
@@ -23,7 +14,7 @@ $NetBSD: patch-aw,v 1.6 2006/07/22 07:37:07 adam Exp $
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);
-@@ -677,7 +677,7 @@ int HandleInputLine(int argc, char **arg
+@@ -720,7 +720,7 @@ int HandleInputLine(int argc, char **arg
printf(" <%s>\n", DATA_TAG);
for (ti = start+step; ti <= end; ti += step) {
printf (" <%s>", DATA_ROW_TAG);
@@ -31,4 +22,4 @@ $NetBSD: patch-aw,v 1.6 2006/07/22 07:37:07 adam Exp $
+ 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;
- newval = *ptr;
+ if (enumds == 1)