mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
making sure my tabs align with upstream
(cherry picked from commit 7e114786e6)
This commit is contained in:
parent
168d3972c4
commit
c9451253d1
@ -62,19 +62,19 @@ if (file_exists($status_file)) {
|
||||
asort($mirror_status[$mirror]['components']);
|
||||
asort($previous_mirror_status[$mirror]['components']);
|
||||
if ($mirror_status[$mirror]['components'] != $previous_mirror_status[$mirror]['components']) {
|
||||
// if in SYNC state, only notify in 25% increments
|
||||
foreach ($mirror_status[$mirror]['components'] as $drive) {
|
||||
$drive = preg_replace('/[\(\)\,\%]/', '', $drive);
|
||||
$component_data = explode(" ", $drive);
|
||||
if ($component_data[1] == 'SYNCHRONIZING') {
|
||||
if (($component_data[2] % 25) == 0) {
|
||||
$notices[] = sprintf(gettext("Mirror %s drive status changed. Old: (%s) New: (%s)"),
|
||||
$mirror,
|
||||
implode(", ", $previous_mirror_status[$mirror]['components']),
|
||||
implode(", ", $mirror_status[$mirror]['components']));
|
||||
}
|
||||
}
|
||||
}
|
||||
// if in SYNC state, only notify in 25% increments
|
||||
foreach ($mirror_status[$mirror]['components'] as $drive) {
|
||||
$drive = preg_replace('/[\(\)\,\%]/', '', $drive);
|
||||
$component_data = explode(" ", $drive);
|
||||
if ($component_data[1] == 'SYNCHRONIZING') {
|
||||
if (($component_data[2] % 25) == 0) {
|
||||
$notices[] = sprintf(gettext("Mirror %s drive status changed. Old: (%s) New: (%s)"),
|
||||
$mirror,
|
||||
implode(", ", $previous_mirror_status[$mirror]['components']),
|
||||
implode(", ", $mirror_status[$mirror]['components']));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user