aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2007-07-18 11:45:08 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-07-18 15:25:59 +0300
commite6b8362298c4c2690065442fc1b38ab0af1cb105 (patch)
treec133fbd48e12d0d7ddb407de89984eb7ccbe0a13
parent43e95b11417e5b61833fd9431259396f372fe3eb (diff)
Correct integrity test calculations of free space
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
-rw-r--r--tests/fs-tests/integrity/integck.c4
1 files changed, 2 insertions, 2 deletions
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;