mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
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:
parent
54c91ec440
commit
fa3f17ac20
4 changed files with 11 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue