diff --git a/commands/nandtest.c b/commands/nandtest.c index 4e6024b..ba15ecf 100644 --- a/commands/nandtest.c +++ b/commands/nandtest.c @@ -112,7 +112,7 @@ newstats.corrected - oldstats.corrected, ofs + memregion.offset + i); init_progression_bar(length); - show_progress(ofs); + show_progress(ofs + i); if ((newstats.corrected-oldstats.corrected) >= MAX_ECC_BITS) { /* Increment ECC stats that @@ -130,7 +130,7 @@ printf("\nECC failed at page 0x%08llx\n", ofs + memregion.offset + i); init_progression_bar(length); - show_progress(ofs); + show_progress(ofs + i); oldstats.failed = newstats.failed; ecc_failed_cnt++; } @@ -292,8 +292,8 @@ for (iter = 0; iter < nr_iterations; iter++) { init_progression_bar(length); - for (test_ofs = flash_offset; - test_ofs < flash_offset + length; + for (test_ofs = 0; + test_ofs < length; test_ofs += meminfo.erasesize) { show_progress(test_ofs); srand(seed);