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;