From 2c7c7f0c6cd442e38b345e43ab30a26fac377f73 Mon Sep 17 00:00:00 2001 From: Tomas Plesnik <plesnik@ics.muni.cz> Date: Tue, 25 Sep 2012 16:21:26 +0200 Subject: [PATCH] uprava formatovani tabulky --- src/warden-server/bin/getStatus.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/warden-server/bin/getStatus.pl b/src/warden-server/bin/getStatus.pl index bc49afb..70bb282 100755 --- a/src/warden-server/bin/getStatus.pl +++ b/src/warden-server/bin/getStatus.pl @@ -10,7 +10,7 @@ use strict; use Getopt::Std; use File::Basename; -our $VERSION = "2.0"; +our $VERSION = "2.1"; my $warden_path = '/opt/warden-server'; require $warden_path . '/lib/WardenStatus.pm'; @@ -99,18 +99,18 @@ print "\n"; # check if sum of registered client isn't 0 if ($server_status[13] != 0) { print "Statistics of registered senders:\n"; - print "+-----------------------------------------------------------------------------------------------------------+\n"; - print "| Client ID | Hostname | Service | Stored events | Last insertion (UTC) |\n"; - print "+-----------------------------------------------------------------------------------------------------------+\n"; + print "+----------------------------------------------------------------------------------------------------------------+\n"; + print "| Client ID | Hostname | Service | Stored events | Last insertion (UTC) |\n"; + print "+----------------------------------------------------------------------------------------------------------------+\n"; foreach my $client_status_ref (@status){ my @client_status = @$client_status_ref; printf("| %-10s ", $client_status[0]); printf("| %-30s ", $client_status[1]); - printf("| %-20s ", $client_status[2]); + printf("| %-25s ", $client_status[2]); printf("| %-13s ", $client_status[3]); printf("| %-20s |\n", $client_status[4]); } - print "+-----------------------------------------------------------------------------------------------------------+\n"; + print "+----------------------------------------------------------------------------------------------------------------+\n"; print "\n"; } -- GitLab