Skip to content

Commit

Permalink
Swap start/end time in measurement (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkornaukhov03 authored Nov 9, 2023
1 parent 7052bca commit a02dd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/php-engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::chrono::nanoseconds>(start_time - end_time).count();
uint64_t total_init_ns = std::chrono::duration_cast<std::chrono::nanoseconds>(end_time - start_time).count();
StatsHouseManager::get().add_init_master_stats(total_init_ns, ConfdataStats::get().initial_loading_time.count());
}

Expand Down

0 comments on commit a02dd7b

Please sign in to comment.