From 60e04dc86b1b77e5aac60994d3a1153388e029e5 Mon Sep 17 00:00:00 2001
From: Tomas Plesnik <plesnik@ics.muni.cz>
Date: Tue, 25 Sep 2012 15:47:38 +0200
Subject: [PATCH] Uprava formatovani tabulky

---
 src/warden-server/bin/getClients.pl | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/warden-server/bin/getClients.pl b/src/warden-server/bin/getClients.pl
index 987d192..d969893 100755
--- a/src/warden-server/bin/getClients.pl
+++ b/src/warden-server/bin/getClients.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';
@@ -71,22 +71,22 @@ if ($UID != 0) {
 
 
 my @clients = WardenStatus::getClients($warden_path);
-print "+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
-print "| Client ID  | Hostname                       | Registered          | Requestor  | Service              | CT | Type            | ROE  | Description tags               | IP Net Client      |\n";
-print "+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
+print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
+print "| Client ID  | Hostname                       | Registered          | Requestor               | Service                   | CT | Type            | ROE  | Description tags                                   | IP Net Client      |\n";
+print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
 foreach (@clients) {
   printf("| %-10s ", @$_[0]);
   printf("| %-30s ", @$_[1]);
   printf("| %19s ", @$_[2]);
-  printf("| %-10s ", @$_[3]);
-  printf("| %-20s ", @$_[4]);
+  printf("| %-23s ", @$_[3]);
+  printf("| %-25s ", @$_[4]);
   printf("| %-2s ", @$_[5]);
   printf("| %-15s ", @$_[6]);
   printf("| %-4s ", @$_[7]);
-  printf("| %-30s ", @$_[8]);
+  printf("| %-50s ", @$_[8]);
   printf("| %-18s |\n", @$_[9]);
 }
-print "+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
+print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
 print "\n";
 print "Current registered clients in: " . scalar localtime(time) . "\n";
 
-- 
GitLab