]> www.infradead.org Git - mtd-utils.git/commitdiff
Correct integrity test calculations of free space
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 18 Jul 2007 08:45:08 +0000 (11:45 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 12:25:59 +0000 (15:25 +0300)
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
tests/fs-tests/integrity/integck.c

index 23ad9bceea112e11aa738337ce1cbdada90d04ce..62123d59e2e2f4b3ba3fb8e3984a74246a625d3f 100644 (file)
@@ -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;