Restore defalt scrub percentage to 8%

This is like the previous 8.1 version, even if the documented
one in the doc was 12%, the real one was 1/12==8%.
This commit is contained in:
Andrea Mazzoleni 2015-11-12 23:04:49 +01:00
parent 54c91ec440
commit fa3f17ac20
4 changed files with 11 additions and 11 deletions

View file

@ -623,8 +623,8 @@ int state_scrub(struct snapraid_state* state, int plan, int olderthan)
if (plan >= 0) {
countlimit = md(blockmax, plan, 100);
} else {
/* by default scrub 12.5% of the array (100/8=12.5) */
countlimit = md(blockmax, 1, 8);
/* by default scrub 8.33% of the array (100/12=8.(3)) */
countlimit = md(blockmax, 1, 12);
}
if (olderthan >= 0) {