php-apm
php-apm copied to clipboard
Wrong duration value after apm.event_enabled is set to "0"
Hi,
apm.event_enabled="0" apm.mysql_enabled=On apm.mysql_stats_enabled=On
with this settings in apm.ini file I am getting wrong duration values (something like 1519402509) in the stats table, but with apm.event_enabled="1" duration values are correct.
After little investigation I have changed code in the apm.c file like this and an issue was disappeared.
diff apm.c apm_orig.c 355c355 < // if (APM_G(event_enabled)) {
> if (APM_G(event_enabled)) { 362c362 < // }
> }
Is the above patch correct or am I missing something?