MXS-2548 Show correct monitor state in "maxadmin list monitors"

The code OR:d with 0.
This commit is contained in:
Esa Korhonen
2019-06-06 17:07:32 +03:00
parent 65975a38e2
commit 1ba77b59e2

View File

@ -606,11 +606,8 @@ void monitor_list(DCB* dcb)
{ {
if (ptr->active) if (ptr->active)
{ {
dcb_printf(dcb, dcb_printf(dcb, "%-20s | %s\n",
"%-20s | %s\n", ptr->name, ptr->state == MONITOR_STATE_RUNNING ? "Running" : "Stopped");
ptr->name,
ptr->state & MONITOR_STATE_RUNNING ?
"Running" : "Stopped");
} }
ptr = ptr->next; ptr = ptr->next;
} }