commit 5c4a7a14d1789cba208834bb3663821c110d2d02
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Oct 8 20:45:55 2017 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Oct 8 20:45:55 2017 -0400
net: Make "Players" column more compact.
This should usually (always?) be no more than 4 characters wide, and
we can offset the column header to the left slightly.
---
src/net_query.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/net_query.c b/src/net_query.c
index 879a9026..2d24fb3a 100644
--- a/src/net_query.c
+++ b/src/net_query.c
@@ -698,7 +698,7 @@ static void PrintHeader(void)
putchar('\n');
formatted_printf(5, "Ping");
- formatted_printf(22, "Address");
+ formatted_printf(18, "Address");
formatted_printf(8, "Players");
puts("Description");
@@ -724,8 +724,8 @@ static void NET_QueryPrintCallback(net_addr_t *addr,
formatted_printf(5, "%4i", ping_time);
formatted_printf(22, "%s", NET_AddrToString(addr));
- formatted_printf(8, "%i/%i", data->num_players,
- data->max_players);
+ formatted_printf(4, "%i/%i ", data->num_players,
+ data->max_players);
if (data->gamemode != indetermined)
{