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()); }