fix caption alignment if date is displayed in local time

This commit is contained in:
Andreas Steffen
2008-05-23 19:21:08 +00:00
parent 731ac6bf52
commit 7dfb8a1bde
+4 -2
View File
@@ -246,9 +246,11 @@ static void leases(char *name, char *filter, bool utc)
{ {
if (!found) if (!found)
{ {
int len = utc ? 25 : 21;
found = TRUE; found = TRUE;
printf("%-8s %15s %-33s %-25s %-25s %-7s\n", printf("%-8s %15s %-33s %-*s %-*s %-7s\n",
"name", "address", "identity", "start", "end", "status"); "name", "address", "identity", len, "start", len, "end", "status");
} }
address = host_create_from_blob(address_chunk); address = host_create_from_blob(address_chunk);
identity = identification_create_from_encoding(identity_type, identity_chunk); identity = identification_create_from_encoding(identity_type, identity_chunk);