From f787077bc5747fa9de22a86d7a967041976d8fea Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 27 Oct 2014 16:24:35 +0100 Subject: [PATCH] Removing two monitor consecutive events Removing two monitor consecutive events --- server/modules/monitor/galera_mon.c | 2 +- server/modules/monitor/mysql_mon.c | 2 +- server/modules/monitor/ndbcluster_mon.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/modules/monitor/galera_mon.c b/server/modules/monitor/galera_mon.c index 02a646aa2..ce2900e4a 100644 --- a/server/modules/monitor/galera_mon.c +++ b/server/modules/monitor/galera_mon.c @@ -454,7 +454,7 @@ size_t nrounds = 0; * round. */ if (nrounds != 0 && - ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval) > + ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval) >= MON_BASE_INTERVAL_MS) { nrounds += 1; diff --git a/server/modules/monitor/mysql_mon.c b/server/modules/monitor/mysql_mon.c index 96781e78e..5050f3e85 100644 --- a/server/modules/monitor/mysql_mon.c +++ b/server/modules/monitor/mysql_mon.c @@ -618,7 +618,7 @@ size_t nrounds = 0; * round. */ if (nrounds != 0 && - ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval) > + ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval) >= MON_BASE_INTERVAL_MS) { nrounds += 1; diff --git a/server/modules/monitor/ndbcluster_mon.c b/server/modules/monitor/ndbcluster_mon.c index 1997f274e..660179ef1 100644 --- a/server/modules/monitor/ndbcluster_mon.c +++ b/server/modules/monitor/ndbcluster_mon.c @@ -452,7 +452,7 @@ size_t nrounds = 0; * round. */ if (nrounds != 0 && - ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval) > + ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval) >= MON_BASE_INTERVAL_MS) { nrounds += 1;