mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Change the default scrub percentage to 15%
This is done to take into account that now synced blocks are scrubbed with priority.
This commit is contained in:
parent
9be125dfb9
commit
7f17d667e6
5 changed files with 32 additions and 35 deletions
|
|
@ -605,8 +605,8 @@ int state_scrub(struct snapraid_state* state, int percentage, int olderthan)
|
|||
if (percentage >= 0) {
|
||||
countlimit = md(blockmax, percentage, 100);
|
||||
} else {
|
||||
/* by default scrub 1/12 of the array */
|
||||
countlimit = md(blockmax, 1, 12);
|
||||
/* by default scrub 15% of the array (100*3/20=15) */
|
||||
countlimit = md(blockmax, 3, 20);
|
||||
}
|
||||
|
||||
if (olderthan >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue