mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Adds regression test for autosave.
This commit is contained in:
parent
baef69c949
commit
c647e75885
5 changed files with 24 additions and 14 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue