diff options
author | he <he> | 2008-06-19 15:56:04 +0000 |
---|---|---|
committer | he <he> | 2008-06-19 15:56:04 +0000 |
commit | 461effe48f530b83db516699342fc478269b9997 (patch) | |
tree | 5625bd59adc75905c9e3026e87ccd23dcd527c89 /databases/rrdtool/patches | |
parent | 57d5b29786cf8cbdd82bf1de7ea333f7a27264e7 (diff) | |
download | pkgsrc-461effe48f530b83db516699342fc478269b9997.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-am | 16 |
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; + } |