rrd resize SHRINK was broken :-) -- Scott Mace <smace@intt.ORG>
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 5 Feb 2003 18:16:02 +0000 (18:16 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 5 Feb 2003 18:16:02 +0000 (18:16 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@177 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_resize.c

index cdf88c3..39941c1 100644 (file)
@@ -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);