projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rrdtool plugin: Add assertion.
[collectd.git]
/
src
/
rrdtool.c
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
bebf468
..
8497a24
100644
(file)
--- a/
src/rrdtool.c
+++ b/
src/rrdtool.c
@@
-743,6
+743,7
@@
static int rrd_cache_insert (const char *filename,
new_rc = 1;
}
+ assert (value_time > 0); /* plugin_dispatch() ensures this. */
if (rc->last_value >= value_time)
{
pthread_mutex_unlock (&cache_lock);