From 06873593de347f3e740d37a9f5416697df662847 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 8 Feb 2009 14:18:57 +0100 Subject: [PATCH] better sensor output --- rsbs2.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; } -- 2.39.5