]> git.zerfleddert.de Git - rsbs2/commitdiff
better sensor output
authorMichael Gernoth <michael@gernoth.net>
Sun, 8 Feb 2009 13:18:57 +0000 (14:18 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sun, 8 Feb 2009 13:18:57 +0000 (14:18 +0100)
rsbs2.pl

index 43f4986b2243ba8abd63e2d798d65088e28c239c..51d9c646eccc25c2334c52c6f66b9f0891005fa5 100755 (executable)
--- a/rsbs2.pl
+++ b/rsbs2.pl
@@ -411,7 +411,7 @@ sub show_sensors {
        my @sensors = get_sensors();
 
        foreach my $sensor (@sensors) {
-               print $sensor->{NAME}.": ".$sensor->{VAL}.$sensor->{UNITS}." ";
+               print $sensor->{NAME}.": ".$sensor->{VAL}.$sensor->{UNITS};
 
                my @info = ();
                foreach my $field qw(MIN MAX LOW_NON_CRITICAL UPPER_NON_CRITICAL LOW_CRITICAL UPPER_CRITICAL) {
@@ -420,7 +420,7 @@ sub show_sensors {
                        }
                }
 
-               print " (".join(", ",@info).")" if (@info);
+               print "\t(".join(", ",@info).")" if (@info);
 
                print "\n";
        }
Impressum, Datenschutz