From 08b69d300d4825c5fa9ac404bbfdee49786e294d Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Thu, 8 Jun 2006 01:10:07 +0000 Subject: [PATCH] Make "Trim logs" do what it says. Bug #340448 r=timeless git-svn-id: svn://10.0.0.236/trunk@199476 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/tinderbox/doadmin.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/tinderbox/doadmin.cgi b/mozilla/webtools/tinderbox/doadmin.cgi index 4ea5b198050..6af23e7c6a8 100755 --- a/mozilla/webtools/tinderbox/doadmin.cgi +++ b/mozilla/webtools/tinderbox/doadmin.cgi @@ -76,9 +76,9 @@ sub trim_logs { # Nuke the old log files # $i = 0; - opendir( D, 'DogbertTip' ); + opendir( D, "$tree" ); while( $fn = readdir( D ) ){ - if( $fn =~ /\.gz$/ ){ + if( $fn =~ /\.(?:gz|brief\.html)$/ ){ ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime, $ctime,$blksize,$blocks) = stat("$tree/$fn"); if( $mtime && ($mtime < $min_date) ){