mirror of
https://github.com/unraid/webgui.git
synced 2026-01-15 14:09:54 -06:00
@@ -704,8 +704,7 @@ function identity(page,disk) {
|
||||
location.replace('/Dashboard/'+page+'?name='+disk);
|
||||
}
|
||||
function acknowledge(disk) {
|
||||
update2.stop();
|
||||
$.post('/webGui/include/Acknowledge.php',{disk:disk},function(){update2.start();});
|
||||
$.post('/webGui/include/Acknowledge.php',{disk:disk});
|
||||
}
|
||||
function dropdown(menu) {
|
||||
var select = 'select[name="'+menu+'"]';
|
||||
|
||||
@@ -182,7 +182,7 @@ function device_smart(&$disk, &$fail, &$smart) {
|
||||
$color = 'green';
|
||||
$file = "state/smart/$name";
|
||||
if (file_exists("$file") && exec("grep -Pom1 '^SMART.*: \K[A-Z]+' ".escapeshellarg($file)." |tr -d '\n' 2>/dev/null", $ssa) && in_array("$ssa",$failed)) {
|
||||
$title = _('SMART health-check failed')."\n"; $thumb = 'thumbs-o-down'; $color = 'red'; $text = 'fail'; $fail++;
|
||||
$title = "S.M.A.R.T health-check failed\n"; $thumb = 'thumbs-o-down'; $color = 'red'; $text = 'fail'; $fail++;
|
||||
} else {
|
||||
if (empty($saved["smart"]["$name.ack"])) {
|
||||
exec("awk 'NR>7{print $1,$2,$4,$6,$9,$10}' ".escapeshellarg($file)." 2>/dev/null", $codes);
|
||||
|
||||
Reference in New Issue
Block a user