summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b86dd62)
raw | patch | inline | side by side (parent: b86dd62)
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.
cannot assure this.
src/utils_rrdcreate.c | patch | blob | history |
diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c
index 4ecec59dae1cdad9d3128b25f241920d888d6fce..66bb27e75dacf6ad6bce7f7f659cfd9e59bd211e 100644 (file)
--- a/src/utils_rrdcreate.c
+++ b/src/utils_rrdcreate.c
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);