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


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.


  • Laurent Destailleur (Eldy)

    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).

  • Nobody/Anonymous

    Logged In: NO

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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks