cosmetics in size field of ipsec pool --status command
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 4 Jun 2008 22:20:19 +0000 (22:20 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 4 Jun 2008 22:20:19 +0000 (22:20 -0000)
src/charon/plugins/sql/pool.c

index 5971762..911582e 100644 (file)
@@ -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");
                                found = TRUE;
                        }
                                           "name", "start", "end", "timeout", "size", "online", "leases");
                                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 */
                        lease = db->query(db, "SELECT COUNT(*) FROM leases "
                                                          "WHERE pool = ? AND released IS NULL",
                        /* get number of online hosts */
                        lease = db->query(db, "SELECT COUNT(*) FROM leases "
                                                          "WHERE pool = ? AND released IS NULL",