From cba363e8980b0cf451915c79a2bfd4d1d0eb4114 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 13 Nov 2015 21:07:30 +0100 Subject: [PATCH] Fix a wrong logic increment in status report --- cmdline/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/status.c b/cmdline/status.c index e418be63..9aa550d3 100644 --- a/cmdline/status.c +++ b/cmdline/status.c @@ -383,11 +383,11 @@ int state_status(struct snapraid_state* state) step_scrubbed = 0; step_new = 0; while (barpos < count && timemap[barpos] <= limit) { - ++barpos; if ((timemap[barpos] & TIME_NEW) != 0) ++step_new; else ++step_scrubbed; + ++barpos; } if (step_new + step_scrubbed > barmax)