From: Florian Forster Date: Thu, 11 Nov 2010 13:20:58 +0000 (+0100) Subject: src/utils_rrdcreate.c: Remove a too strict assertion. X-Git-Tag: collectd-4.9.4~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=11893a7c85389e6d8a07d1ee8473294767c7ccb9;p=collectd.git src/utils_rrdcreate.c: Remove a too strict assertion. We don't actually check anywhere that vl->time is greater than 10, so we cannot assure this. --- diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c index 4ecec59d..66bb27e7 100644 --- 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);