From ab3fd3164fbc36a88faaabe1ba00ae500e55010c Mon Sep 17 00:00:00 2001 From: factosea <285808407@qq.com> Date: Thu, 22 Feb 2024 11:42:34 +0800 Subject: [PATCH] fix: tag desc --- source/client/src/slowQueryMonitor.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/source/client/src/slowQueryMonitor.c b/source/client/src/slowQueryMonitor.c index 933ef5de16..caa8fe1995 100644 --- a/source/client/src/slowQueryMonitor.c +++ b/source/client/src/slowQueryMonitor.c @@ -27,18 +27,16 @@ const int64_t msInSeconds = 1000; const int64_t msInMinutes = 60 * 1000; static const char* getSlowQueryLableCostDesc(int64_t cost) { - if (cost >= 10000 * msInSeconds) { - return " > 10000 seconds"; - } else if (cost >= 1000 * msInSeconds) { - return " > 1000 seconds"; + if (cost >= 1000 * msInSeconds) { + return "1000s-"; } else if (cost >= 100 * msInSeconds) { - return " > 100 seconds"; + return "100-1000s"; } else if (cost >= 10 * msInSeconds) { - return " > 10 seconds"; + return "10-100s"; } else if (cost >= 3 * msInSeconds) { - return " > 3 seconds"; + return "3-10s"; } - return "< 3 s"; + return "0-3s"; } void clientSlowQueryMonitorInit(const char* clusterKey) {