MXS-2548 Show correct monitor state in "maxadmin list monitors"
The code OR:d with 0.
This commit is contained in:
parent
65975a38e2
commit
1ba77b59e2
@ -606,11 +606,8 @@ void monitor_list(DCB* dcb)
|
||||
{
|
||||
if (ptr->active)
|
||||
{
|
||||
dcb_printf(dcb,
|
||||
"%-20s | %s\n",
|
||||
ptr->name,
|
||||
ptr->state & MONITOR_STATE_RUNNING ?
|
||||
"Running" : "Stopped");
|
||||
dcb_printf(dcb, "%-20s | %s\n",
|
||||
ptr->name, ptr->state == MONITOR_STATE_RUNNING ? "Running" : "Stopped");
|
||||
}
|
||||
ptr = ptr->next;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user