From: Michael Gernoth Date: Sun, 8 Feb 2009 13:18:57 +0000 (+0100) Subject: better sensor output X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/06873593de347f3e740d37a9f5416697df662847?ds=sidebyside;hp=661b5a0eabc3b2e85e20475cdfe60c702a83aa82 better sensor output --- diff --git a/rsbs2.pl b/rsbs2.pl index 43f4986..51d9c64 100755 --- 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"; }