- 論壇徽章:
- 0
|
- Day '35' out of range 1..30 at /usr/local/awstats/wwwroot/cgi-bin/awstats.pl line 1584
復(fù)制代碼 以前一直跑的好好的,然后我也沒管,最近幾天突然出現(xiàn)這個(gè)狀況,而以前的日志分析的時(shí)候卻沒有問題- sub GetSessionRange {
- my $starttime = my $endtime;
- if ( shift =~ /$regdate/o ) {
- $starttime = Time::Local::timelocal( $6, $5, $4, $3, $2 - 1, $1 );
- }
- if ( shift =~ /$regdate/o ) {
- $endtime = Time::Local::timelocal( $6, $5, $4, $3, $2 - 1, $1 );
- }
- my $delay = $endtime - $starttime;
- if ($Debug) {
- debug( "GetSessionRange $endtime - $starttime = $delay", 4 );
- }
- if ( $delay <= 30 ) { return $SessionsRange[0]; }
- if ( $delay <= 120 ) { return $SessionsRange[1]; }
- if ( $delay <= 300 ) { return $SessionsRange[2]; }
- if ( $delay <= 900 ) { return $SessionsRange[3]; }
- if ( $delay <= 1800 ) { return $SessionsRange[4]; }
- if ( $delay <= 3600 ) { return $SessionsRange[5]; }
- return $SessionsRange[6];
- }
復(fù)制代碼 這是報(bào)錯(cuò)的附近幾行的代碼,有人遇到過嗎 |
|