X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_resize.c;h=39941c1cd4ada12fbf79bca413e44a904edb588a;hb=b48f8f963467ce3e608e286c6dff08b54e05bcef;hp=cdf88c31df962f43cb27f76eaedf83ed382427be;hpb=5d406a5f504148a9e494ea09b25d9b8d79543516;p=rrdtool.git 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);