mirror of
https://github.com/unraid/webgui.git
synced 2026-04-27 13:29:42 -05:00
Added: Cumulative parity check
This commit is contained in:
@@ -67,7 +67,7 @@ if (isset($_POST['#apply'])) {
|
||||
[$m, $h] = explode(' ',$time);
|
||||
$h = ($h + $_POST['duration']) % 24;
|
||||
if ($_POST['frequency']==7) {
|
||||
$test = '[[ $(((($(date +%s)-$(grep -Pom1 "^sbSynced=\K\d+" /proc/mdstat))/86400)%7)) -eq 0 ]] && ';
|
||||
$test = '[[ $(((($(date +%s)-$(grep -Pom1 "^sbSynced=\K.*" /proc/mdstat))/86400)%7)) -eq 0 ]] && ';
|
||||
$end1 = ' || :';
|
||||
}
|
||||
$cron[] = "$m $h * * * $parity pause &> /dev/null";
|
||||
|
||||
Reference in New Issue
Block a user