}
if (modify < 0)
- if (rrdold.rra_def[target_rra].row_cnt <= modify) {
+ if (rrdold.rra_def[target_rra].row_cnt <= -modify) {
rrd_set_error("This RRA is not that big");
rrd_free(&rrdold);
fclose(infile);
fwrite(rrdnew.rra_ptr,sizeof(rra_ptr_t),rrdnew.stat_head->rra_cnt,outfile);
/* Move the CDPs from the old to the new database.
- ** This can be made (much) faster but isn't worth the efford. Clarity
+ ** This can be made (much) faster but isn't worth the effort. Clarity
** is much more important.
*/