Adds regression test for autosave.

This commit is contained in:
Andrea Mazzoleni 2014-11-10 23:06:14 +01:00
parent baef69c949
commit c647e75885
5 changed files with 24 additions and 14 deletions

View file

@ -527,9 +527,9 @@ int state_scrub(struct snapraid_state* state, int percentage, int olderthan)
/* no limit */
countlimit = blockmax;
recentlimit = now;
} else if (state->opt.force_scrub) {
} else if (state->opt.force_scrub_at) {
/* scrub the specified amount of blocks */
countlimit = state->opt.force_scrub;
countlimit = state->opt.force_scrub_at;
recentlimit = now;
} else {
/* by default scrub 1/12 of the array */