Skip to content
Snippets Groups Projects
Commit 2c7c7f0c authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

uprava formatovani tabulky

parent 06ac9863
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment