php-apm icon indicating copy to clipboard operation
php-apm copied to clipboard

Wrong duration value after apm.event_enabled is set to "0"

Open merabtav opened this issue 7 years ago • 0 comments

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?

merabtav avatar Feb 23 '18 16:02 merabtav