Revert "Bug fixes"

This reverts commit 6dcfc2950b.
This commit is contained in:
bergware
2021-05-15 08:35:49 +02:00
parent bf1f0738b1
commit e27e70d968
2 changed files with 2 additions and 3 deletions

View File

@@ -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+'"]';

View File

@@ -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);