diff options
| author | Paul Buetow <paul@buetow.org> | 2011-08-05 21:12:31 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-08-05 21:12:31 +0000 |
| commit | 161dcf8a3d450e9ec5dfa653baebc75b2b58293f (patch) | |
| tree | 6d97fc94e8ba5f9025468b0539c91bf8a454f039 /loadbars.pl | |
| parent | 909fe1731ab0fc3e3773941f6f894c3d3475fb2b (diff) | |
Not using FQDNs if hostname is printed
Diffstat (limited to 'loadbars.pl')
| -rwxr-xr-x | loadbars.pl | 4 |
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); } |
