1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-22 15:33:43 +01:00

add previously removed output

fix of small accident
This commit is contained in:
Michal Švamberg 2014-08-18 17:57:48 +02:00
parent 00b0626b93
commit bb03d662bc

View File

@ -793,6 +793,7 @@ if("$opt{'check_type'}" eq "TEMP") {
foreach my $subkey ( keys %shelf) { foreach my $subkey ( keys %shelf) {
if ( $shelf{$subkey} ne "" ) { if ( $shelf{$subkey} ne "" ) {
print "$subkey->$shelf{$subkey} ";
if ( "$subkey" eq "CurrentTemp" ) { if ( "$subkey" eq "CurrentTemp" ) {
$shelf{$subkey} =~ m/^([0-9]+)C.*$/; $shelf{$subkey} =~ m/^([0-9]+)C.*$/;
$perf_temp = "$perf_temp, temp_$shelf{'ShelfNumber'}=$1"; $perf_temp = "$perf_temp, temp_$shelf{'ShelfNumber'}=$1";