mirror of
https://github.com/webmin/webmin.git
synced 2026-05-26 08:00:31 +01:00
Handle different temperature measure as seen on SSDs http://sourceforge.net/p/webadmin/bugs/4404/
This commit is contained in:
@@ -386,7 +386,8 @@ if (!$config{'collect_notemp'} &&
|
||||
foreach my $d (&smart_status::list_smart_disks_partitions()) {
|
||||
my $st = &smart_status::get_drive_status($d->{'device'}, $d);
|
||||
foreach my $a (@{$st->{'attribs'}}) {
|
||||
if ($a->[0] =~ /^Temperature\s+Celsius$/i &&
|
||||
if (($a->[0] =~ /^Temperature\s+Celsius$/i ||
|
||||
$a->[0] =~ /^Airflow\s+Temperature\s+Cel/i) &&
|
||||
$a->[1] > 0) {
|
||||
push(@rv, { 'device' => $d->{'device'},
|
||||
'temp' => int($a->[1]),
|
||||
|
||||
Reference in New Issue
Block a user