projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The patch I submitted for rrdtool.spec introduced a bug where there
[rrdtool.git]
/
src
/
rrd_update.c
diff --git
a/src/rrd_update.c
b/src/rrd_update.c
index
9d3e854
..
5e26055
100644
(file)
--- a/
src/rrd_update.c
+++ b/
src/rrd_update.c
@@
-450,13
+450,9
@@
int rrd_update(
rc = rrdc_update (argv[optind], /* file */
argc - optind - 1, /* values_num */
(void *) (argv + optind + 1)); /* values */
rc = rrdc_update (argv[optind], /* file */
argc - optind - 1, /* values_num */
(void *) (argv + optind + 1)); /* values */
- if (rc != 0)
- {
+ if (rc > 0)
rrd_set_error("Failed sending the values to rrdcached: %s",
rrd_set_error("Failed sending the values to rrdcached: %s",
- (rc < 0)
- ? "Internal error"
- : rrd_strerror (rc));
- }
+ rrd_strerror (rc));
}
out:
}
out: