X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_resize.c;h=39941c1cd4ada12fbf79bca413e44a904edb588a;hp=cdf88c31df962f43cb27f76eaedf83ed382427be;hb=0b59fe0b8178d6f97788540c5983190ee6556586;hpb=9e5e7572b2d2467a4417452869702e2e908267db diff --git a/src/rrd_resize.c b/src/rrd_resize.c index cdf88c3..39941c1 100644 --- a/src/rrd_resize.c +++ b/src/rrd_resize.c @@ -69,7 +69,7 @@ rrd_resize(int argc, char **argv) } 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);