From a1d8708a4d4b8dfd6bf71c9de0c8e3a49cf832a8 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 5 Feb 2003 18:16:02 +0000 Subject: [PATCH] rrd resize SHRINK was broken :-) -- Scott Mace git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@177 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_resize.c b/program/src/rrd_resize.c index cdf88c31..39941c1c 100644 --- a/program/src/rrd_resize.c +++ b/program/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); -- 2.30.2