MXS-2548 Show correct monitor state in "maxadmin list monitors"
The code OR:d with 0.
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user