diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-05-23 19:21:08 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-05-23 19:21:08 +0000 |
commit | 7dfb8a1bdeecd7fe6d3db031fb859a65bedcb19f (patch) | |
tree | 5416626b322c576e33ead8f759a266ffc5f3de7a | |
parent | 731ac6bf520bbc110edf3c255f468c080aec127b (diff) | |
download | strongswan-7dfb8a1bdeecd7fe6d3db031fb859a65bedcb19f.tar.bz2 strongswan-7dfb8a1bdeecd7fe6d3db031fb859a65bedcb19f.tar.xz |
fix caption alignment if date is displayed in local time
-rw-r--r-- | src/charon/plugins/sql/pool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/charon/plugins/sql/pool.c b/src/charon/plugins/sql/pool.c index 5187fdd1d..a5ddcb29b 100644 --- a/src/charon/plugins/sql/pool.c +++ b/src/charon/plugins/sql/pool.c @@ -246,9 +246,11 @@ static void leases(char *name, char *filter, bool utc) { if (!found) { + int len = utc ? 25 : 21; + found = TRUE; - printf("%-8s %15s %-33s %-25s %-25s %-7s\n", - "name", "address", "identity", "start", "end", "status"); + printf("%-8s %15s %-33s %-*s %-*s %-7s\n", + "name", "address", "identity", len, "start", len, "end", "status"); } address = host_create_from_blob(address_chunk); identity = identification_create_from_encoding(identity_type, identity_chunk); |