projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b86dd62
)
src/utils_rrdcreate.c: Remove a too strict assertion.
author
Florian Forster
<octo@noris.net>
Thu, 11 Nov 2010 13:20:58 +0000
(14:20 +0100)
committer
Florian Forster
<octo@noris.net>
Thu, 11 Nov 2010 13:20:58 +0000
(14:20 +0100)
We don't actually check anywhere that vl->time is greater than 10, so we
cannot assure this.
src/utils_rrdcreate.c
patch
|
blob
|
history
diff --git
a/src/utils_rrdcreate.c
b/src/utils_rrdcreate.c
index
4ecec59
..
66bb27e
100644
(file)
--- a/
src/utils_rrdcreate.c
+++ b/
src/utils_rrdcreate.c
@@
-398,10
+398,9
@@
int cu_rrd_create_file (const char *filename, /* {{{ */
memcpy (argv + ds_num, rra_def, rra_num * sizeof (char *));
argv[ds_num + rra_num] = NULL;
- assert (vl->time > 10);
status = srrd_create (filename,
(cfg->stepsize > 0) ? cfg->stepsize : vl->interval,
-
vl->time - 10
,
+
(vl->time > 10) ? (vl->time - 10) : vl->time
,
argc, (const char **) argv);
free (argv);