From: Florian Forster Date: Wed, 15 Dec 2010 07:04:00 +0000 (+0100) Subject: src/utils_rrdcreate.c: Convert vl->interval to seconds when creating RRD files. X-Git-Tag: collectd-5.0.0-beta1~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30cfc39e265409fe7334caccf4368f8b2d0ee486;p=collectd.git src/utils_rrdcreate.c: Convert vl->interval to seconds when creating RRD files. --- diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c index ce6443b7..5b132388 100644 --- a/src/utils_rrdcreate.c +++ b/src/utils_rrdcreate.c @@ -416,7 +416,7 @@ int cu_rrd_create_file (const char *filename, /* {{{ */ stepsize = (int) CDTIME_T_TO_TIME_T (vl->interval); status = srrd_create (filename, - (cfg->stepsize > 0) ? cfg->stepsize : vl->interval, + (cfg->stepsize > 0) ? cfg->stepsize : CDTIME_T_TO_TIME_T (vl->interval), last_up, argc, (const char **) argv);