Ref #2049
This commit is contained in:
parent
46438121c9
commit
82e048efc0
|
@ -66,8 +66,7 @@ sub check {
|
|||
$self->{components}->{disk}->{total}++;
|
||||
|
||||
my $temperature_value = defined($result->{diskTemperature}) && $result->{diskTemperature} != -1 ? $result->{diskTemperature} : '-';
|
||||
my $temperature_unit = $temperature_string ne '' && $self->{mib_ver} eq 'v6' ? 'C' : '';
|
||||
$temperature_unit = $temperature_string ne '' && $self->{mib_ver} eq 'v4' ? 'F' : '';
|
||||
my $temperature_unit = $self->{mib_ver} eq 'v6' ? 'C' : 'F';
|
||||
|
||||
$self->{output}->output_add(
|
||||
long_msg => sprintf(
|
||||
|
|
Loading…
Reference in New Issue