I just upgraded to AWStats 6.6 (Gentoo), and I noticed
a string of errors like:
Argument "-" isn't numeric in int at
line 6710, <LOG> line 307 (#1)
in my cron output.
These errors happened at many other places (everywhere
it called int()).
At 6710, I noticed that it was casting
$field[$pos_size] to an int.
It also had this comment:
I fixed the warnings by adding an "if
($field[$pos_size] ne '-')" around all of the error areas.
I figure it should not change anything since (in C at
least) 0 is the default for bad strings, so it should
add nothing in the case that there is a '-'.
I understand that my way may not have been the best way
to patch it. I am a C person and have never touched
perl in my life, so there may have been a much more
obvious way to fix this. Maybe you could make a
function to replace int() that checks for '-' and then
casts to int, and call it instead wherever you say int().
Anyway, I hope some fix is put in place to fix these
warnings for 6.6 final. I don't like getting 1000-line
cron e-mails full of these messages. :-p