cosmetics in size field of ipsec pool --status command
This commit is contained in:
@@ -122,7 +122,7 @@ static void status(void)
|
|||||||
{
|
{
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
printf("%8s %15s %15s %8s %4s %11s %11s\n",
|
printf("%8s %15s %15s %8s %6s %11s %11s\n",
|
||||||
"name", "start", "end", "timeout", "size", "online", "leases");
|
"name", "start", "end", "timeout", "size", "online", "leases");
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,7 @@ static void status(void)
|
|||||||
{
|
{
|
||||||
printf("%8s ", "static");
|
printf("%8s ", "static");
|
||||||
}
|
}
|
||||||
printf("%4d ", size);
|
printf("%6d ", size);
|
||||||
/* get number of online hosts */
|
/* get number of online hosts */
|
||||||
lease = db->query(db, "SELECT COUNT(*) FROM leases "
|
lease = db->query(db, "SELECT COUNT(*) FROM leases "
|
||||||
"WHERE pool = ? AND released IS NULL",
|
"WHERE pool = ? AND released IS NULL",
|
||||||
|
|||||||
Reference in New Issue
Block a user