From a02dd7b1360a0a77dbec6db5a690b09cfab62820 Mon Sep 17 00:00:00 2001 From: Mikhail Kornaukhov <66915223+mkornaukhov03@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:22:40 +0300 Subject: [PATCH] Swap start/end time in measurement (#936) --- server/php-engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/php-engine.cpp b/server/php-engine.cpp index 094388da34..3b50adf2a9 100644 --- a/server/php-engine.cpp +++ b/server/php-engine.cpp @@ -1690,7 +1690,7 @@ void init_all() { init_confdata_binlog_reader(); auto end_time = std::chrono::steady_clock::now(); - uint64_t total_init_ns = std::chrono::duration_cast(start_time - end_time).count(); + uint64_t total_init_ns = std::chrono::duration_cast(end_time - start_time).count(); StatsHouseManager::get().add_init_master_stats(total_init_ns, ConfdataStats::get().initial_loading_time.count()); }