From e6b8362298c4c2690065442fc1b38ab0af1cb105 Mon Sep 17 00:00:00 2001 From: Adrian Hunter Date: Wed, 18 Jul 2007 11:45:08 +0300 Subject: Correct integrity test calculations of free space Signed-off-by: Adrian Hunter --- tests/fs-tests/integrity/integck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3