summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches
diff options
context:
space:
mode:
authorhe <he>2008-06-19 15:56:04 +0000
committerhe <he>2008-06-19 15:56:04 +0000
commitfac88d0bb62cb86c30671977b194754fc6e0dd03 (patch)
tree5625bd59adc75905c9e3026e87ccd23dcd527c89 /databases/rrdtool/patches
parent2171f57a3c0acaf1e4002198817dbd978119e575 (diff)
downloadpkgsrc-fac88d0bb62cb86c30671977b194754fc6e0dd03.tar.gz
Add name of rrd database to "illegal attempt to update using time..."
error message, since rrdupdate may update more than one rrd database. Submitted as a feature enhancement request upstream (#162). Bump package revision.
Diffstat (limited to 'databases/rrdtool/patches')
-rw-r--r--databases/rrdtool/patches/patch-am16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/rrdtool/patches/patch-am b/databases/rrdtool/patches/patch-am
new file mode 100644
index 00000000000..a7b0ea20f4f
--- /dev/null
+++ b/databases/rrdtool/patches/patch-am
@@ -0,0 +1,16 @@
+$NetBSD: patch-am,v 1.4 2008/06/19 15:56:04 he Exp $
+
+--- src/rrd_update.c.orig 2008-02-17 11:26:32.000000000 +0100
++++ src/rrd_update.c
+@@ -533,9 +533,9 @@ _rrd_update(const char *filename, const
+ if(current_time < rrd.live_head->last_up ||
+ (current_time == rrd.live_head->last_up &&
+ (long)current_time_usec <= (long)rrd.live_head->last_up_usec)) {
+- rrd_set_error("illegal attempt to update using time %ld when "
++ rrd_set_error("%s: illegal attempt to update using time %ld when "
+ "last update time is %ld (minimum one second step)",
+- current_time, rrd.live_head->last_up);
++ filename, current_time, rrd.live_head->last_up);
+ free(step_start);
+ break;
+ }