From d793382006ddcf2201df6359206fcb69b281d468 Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Thu, 25 Sep 2014 08:31:29 +0100 Subject: [PATCH] Make "list monitors" output consistant with the output from other list commands --- server/core/monitor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/core/monitor.c b/server/core/monitor.c index 3504be917..101ce2e10 100644 --- a/server/core/monitor.c +++ b/server/core/monitor.c @@ -234,17 +234,17 @@ MONITOR *ptr; spinlock_acquire(&monLock); ptr = allMonitors; - dcb_printf(dcb, "+----------------------+---------------------\n"); - dcb_printf(dcb, "| %-20s | Status\n", "Monitor"); - dcb_printf(dcb, "+----------------------+---------------------\n"); + dcb_printf(dcb, "---------------------+---------------------\n"); + dcb_printf(dcb, "%-20s | Status\n", "Monitor"); + dcb_printf(dcb, "---------------------+---------------------\n"); while (ptr) { - dcb_printf(dcb, "| %-20s | %s\n", ptr->name, + dcb_printf(dcb, "%-20s | %s\n", ptr->name, ptr->state & MONITOR_STATE_RUNNING ? "Running" : "Stopped"); ptr = ptr->next; } - dcb_printf(dcb, "+----------------------+---------------------\n"); + dcb_printf(dcb, "---------------------+---------------------\n"); spinlock_release(&monLock); }