summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-08-05 21:12:31 +0000
committerPaul Buetow <paul@buetow.org>2011-08-05 21:12:31 +0000
commit161dcf8a3d450e9ec5dfa653baebc75b2b58293f (patch)
tree6d97fc94e8ba5f9025468b0539c91bf8a454f039
parent909fe1731ab0fc3e3773941f6f894c3d3475fb2b (diff)
Not using FQDNs if hostname is printed
-rwxr-xr-xloadbars.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/loadbars.pl b/loadbars.pl
index 1c22b71..b428f1c 100755
--- a/loadbars.pl
+++ b/loadbars.pl
@@ -403,7 +403,9 @@ sub thr_display_stats () {
my ($y, $space) = (5, 15);
if ($displaytxt{host}) {
- $app->print($x, $y, sprintf '%s:', $host);
+ $host =~ /(.*)\.?/;
+ $app->print($x, $y, sprintf '%s:', $1);
+
} else {
$app->print($x, $y, sprintf '%i:', $counter);
}