Fix a wrong logic increment in status report

This commit is contained in:
Andrea Mazzoleni 2015-11-13 21:07:30 +01:00
parent fa3f17ac20
commit cba363e898

View file

@ -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)