Skip to content

Commit

Permalink
fix initialization time metrics (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrophysik authored Nov 3, 2023
1 parent 8ee6876 commit 8ae1454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/php-runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ void PhpScript::init(script_t *script, php_query_data_t *data_to_set) noexcept {

error_message = "??? error";

script_time_stats.script_start_time = get_utime_monotonic();
script_time = 0;
net_time = 0;
script_init_rusage = get_rusage_info();
Expand Down Expand Up @@ -419,6 +418,7 @@ void PhpScript::run() noexcept {
check_net_context_errors();

CurException = Optional<bool>{};
script_time_stats.script_start_time = get_utime_monotonic();
run_main->run();
if (CurException.is_null()) {
set_script_result(nullptr);
Expand Down

0 comments on commit 8ae1454

Please sign in to comment.