From c729b075440f461d01bf266d75943379d04e8ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 23 Jan 2025 19:51:44 +0100 Subject: [PATCH] Fix typo for 'MySQL_Logger' metric 'totalGetAllEventsTimeMicros' --- include/MySQL_Logger.hpp | 2 +- lib/MySQL_Logger.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/MySQL_Logger.hpp b/include/MySQL_Logger.hpp index 96d028cb4..2da240760 100644 --- a/include/MySQL_Logger.hpp +++ b/include/MySQL_Logger.hpp @@ -357,7 +357,7 @@ private: /** @brief Total time spent copying events to the on-disk database (microseconds). */ std::atomic totalDiskCopyTimeMicros; /** @brief Total time spent in `get_all_events` (microseconds). */ - std::atomic totalGetAllEventsDiskCopyTimeMicros; + std::atomic totalGetAllEventsTimeMicros; /** @brief Total number of events copied to the in-memory database. */ std::atomic totalEventsCopiedToMemory; /** @brief Total number of events copied to the on-disk database. */ diff --git a/lib/MySQL_Logger.cpp b/lib/MySQL_Logger.cpp index 1dd07d67a..0b8e17fe7 100644 --- a/lib/MySQL_Logger.cpp +++ b/lib/MySQL_Logger.cpp @@ -1428,7 +1428,7 @@ int MySQL_Logger::processEvents(SQLite3DB * statsdb , SQLite3DB * statsdb_disk) unsigned long long afterGetAllEventsTimeMicros = monotonic_time(); metrics.getAllEventsEventsCount += events.size(); - metrics.totalGetAllEventsDiskCopyTimeMicros += (afterGetAllEventsTimeMicros-startTimeMicros); + metrics.totalGetAllEventsTimeMicros += (afterGetAllEventsTimeMicros-startTimeMicros); if (statsdb_disk != nullptr) { // Write to on-disk database first @@ -1493,7 +1493,7 @@ std::unordered_map MySQL_Logger::getAllMetrics( allMetrics["getAllEventsEventsCount"] = metrics.getAllEventsEventsCount; allMetrics["totalMemoryCopyTimeMicros"] = metrics.totalMemoryCopyTimeMicros; allMetrics["totalDiskCopyTimeMicros"] = metrics.totalDiskCopyTimeMicros; - allMetrics["totalGetAllEventsDiskCopyTimeMicros"] = metrics.totalGetAllEventsDiskCopyTimeMicros; + allMetrics["totalGetAllEventsTimeMicros"] = metrics.totalGetAllEventsTimeMicros; allMetrics["totalEventsCopiedToMemory"] = metrics.totalEventsCopiedToMemory; allMetrics["totalEventsCopiedToDisk"] = metrics.totalEventsCopiedToDisk; //allMetrics["eventsAddedToBufferCount"] = metrics.eventsAddedToBufferCount;