From 11893a7c85389e6d8a07d1ee8473294767c7ccb9 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 11 Nov 2010 14:20:58 +0100 Subject: [PATCH] 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. --- src/utils_rrdcreate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.30.2