Opened 11 years ago

Closed 11 years ago

#8 closed bug (fixed)

Log parsing failure due to stat value not integer

Reported by: Marc Dequènes (Duck) Owned by: Vincent Caron
Priority: major Component: phptop
Keywords: parsing Cc:


See an exemple of log generated by phptop:

[Sun Mar 14 07:42:21 2010] [error] [client] phptop time:0.008329 user:0.000000 sys:0.008000 mem:1.04858e+6 inc:14, referer:

The memory value 1.04858e+6 does not match regex at line 158 in the phptop script, leading to most lines being skipped.

Change History (2)

comment:1 Changed 11 years ago by Vincent Caron

It looks like the simpler option is to prevent the scientific notation output in the source:/phptop/phptop_hook.php probe. I don't know why I used a %g instead of a %u for memory output...

BTW the non-local aware %F formater requires PHP >= 4.3.10 or PHP >= 5.0.3, I'll mention it in the README. No impact on Debian deps though.

I'm releasing 0.5.1 ASAP with this fix.

comment:2 Changed 11 years ago by zerodeux

Resolution: fixed
Status: newclosed

(In [395]) Fixing non-integer memory output + credits. Closes #8

Note: See TracTickets for help on using tickets.