Commit 737c4757 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

1. correcred argument for current temperature value

parent b5c29e1f
......@@ -18,11 +18,11 @@ if ($cmd=="t"){
$t_10389 = intval($t_10389)/1000;
}
$t_sda = exec("smartctl -A /dev/sda | egrep ^194 | awk '{print $4}'");
$t_sda = exec("smartctl -A /dev/sda | egrep ^194 | awk '{print $10}'");
if ($t_sda=="") $t_sda = "-";
else $t_sda = intval($t_sda);
$t_sdb = exec("smartctl -A /dev/sdb | egrep ^194 | awk '{print $4}'");
$t_sdb = exec("smartctl -A /dev/sdb | egrep ^194 | awk '{print $10}'");
if ($t_sdb=="") $t_sdb = "-";
else $t_sdb = intval($t_sdb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment