From 2cedd9854e6e5fcb8bd73d877f834d5d5cd32ef7 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 22 Jun 2018 21:04:30 +0100 Subject: [PATCH] dinitctl: fix spacing in output. --- src/dinitctl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dinitctl.cc b/src/dinitctl.cc index 8bdc93d..7016ea1 100644 --- a/src/dinitctl.cc +++ b/src/dinitctl.cc @@ -602,7 +602,10 @@ static int list_services(int socknum, cpbuffer_t &rbuffer) cout << (did_fail ? "X" : "-"); } - cout << (target == service_state_t::STOPPED ? "}" : " "); + else { + cout << " "; + } + cout << (target == service_state_t::STOPPED ? "}" : " "); cout << "] " << name; -- 2.25.1