// Add the DS line
r = td_args_push(args, "DS:%s:%s:%lu:%s:%s",
- ds->field, ds->type, USEC_TO_SEC(HEARTBEAT), min, max);
+ ds->field, ds->type, USEC_TO_SEC(HEARTBEAT * 2), min, max);
if (r < 0)
goto ERROR;
}
goto ERROR;
// Create the RRD file
- r = rrd_create_r2(path, USEC_TO_SEC(HEARTBEAT / 2), 0, 0, sources, NULL,
+ r = rrd_create_r2(path, USEC_TO_SEC(HEARTBEAT), 0, 0, sources, NULL,
td_args_argc(args), td_args_argv(args));
if (r < 0) {
ERROR(self->ctx, "Failed to create %s: %s\n", path, rrd_get_error());