Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 On days < 10, daily IIS log not found

closed
5
2012-10-11
2001-01-03
Anonymous
No

On days before the 10th, IIS logfiles named exyymmdd.log were not being found because $nowday was a single digit without a leading zero. I added the the last line of the following block:

if ($nowyear < 100) { $nowyear+=2000; } else { $nowyear+=1900; }
$nowsmallyear=$nowyear;$nowsmallyear =~ s/^..//;
$nowmonth++;if ($nowmonth < 10) { $nowmonth = "0$nowmonth"; }
if ($nowday < 10) { $nowday = "0".$nowday };

Problem solved.

Discussion

  • Thanks for submitting the problem... and the solution.
    Users can correct it making the change shown in bug description or download the current developement version (but may be not stable) from CVS server (available from awstats.sourceforge.net).

     
  • Logged In: NO

    THANKS! Just updated the perl file with that fix and
    everything works perfectly! No more messing around with
    file permissions =)