From: Adrian Hunter Date: Wed, 18 Jul 2007 08:45:08 +0000 (+0300) Subject: Correct integrity test calculations of free space X-Git-Tag: v1.1.0~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e6b8362298c4c2690065442fc1b38ab0af1cb105;p=mtd-utils.git Correct integrity test calculations of free space Signed-off-by: Adrian Hunter --- diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 23ad9bc..62123d5 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -1252,7 +1252,7 @@ static void create_test_data(void) do_an_operation(); free = tests_get_free_space(); total = tests_get_total_space(); - if ((free * 100) / total < 90) + if ((free * 100) / total >= 10) break; } grow = 0; @@ -1281,7 +1281,7 @@ static void update_test_data(void) do_an_operation(); free = tests_get_free_space(); total = tests_get_total_space(); - if ((free * 100) / total < 50) + if ((free * 100) / total >= 50) break; } grow = 0;