From 5676375364f9651d8c66f85579d5c5edb7411981 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 5 Aug 2011 21:14:11 +0000 Subject: Not using FQDNs if hostname is printed (bugfix) --- loadbars.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loadbars.pl b/loadbars.pl index b428f1c..87079d8 100755 --- a/loadbars.pl +++ b/loadbars.pl @@ -403,7 +403,7 @@ sub thr_display_stats () { my ($y, $space) = (5, 15); if ($displaytxt{host}) { - $host =~ /(.*)\.?/; + $host =~ /([^\.]*)/; $app->print($x, $y, sprintf '%s:', $1); } else { -- cgit v1.2.3