summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-08-05 21:14:11 +0000
committerPaul Buetow <paul@buetow.org>2011-08-05 21:14:11 +0000
commit5676375364f9651d8c66f85579d5c5edb7411981 (patch)
tree06d980804c36796403d8e0776c4bb32333eb5a58
parent161dcf8a3d450e9ec5dfa653baebc75b2b58293f (diff)
Not using FQDNs if hostname is printed (bugfix)
-rwxr-xr-xloadbars.pl2
1 files changed, 1 insertions, 1 deletions
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 {