Fix unit for celsius
This commit is contained in:
parent
c5c328cdaf
commit
f6883f8701
|
@ -117,7 +117,7 @@ sub run {
|
||||||
$self->{output}->output_add(severity => $exit_code,
|
$self->{output}->output_add(severity => $exit_code,
|
||||||
short_msg => sprintf("'%s' temp is %s", $disk, $temp . '°' . $self->{option_results}->{unit}));
|
short_msg => sprintf("'%s' temp is %s", $disk, $temp . '°' . $self->{option_results}->{unit}));
|
||||||
}
|
}
|
||||||
$self->{output}->perfdata_add(label => $disk, unit => '°' .$self->{option_results}->{unit},
|
$self->{output}->perfdata_add(label => $disk, unit => $self->{option_results}->{unit},
|
||||||
value => $temp,
|
value => $temp,
|
||||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
|
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
|
||||||
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
|
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
|
||||||
|
|
Loading…
Reference in New Issue