From 67603d642360b627c8ed34f9dabb1fcf2dfa5279 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" Date: Wed, 10 Mar 1999 02:48:31 +0000 Subject: [PATCH] Cope if no mindate/maxdate is provided. --- webtools/tinderbox/globals.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webtools/tinderbox/globals.pl b/webtools/tinderbox/globals.pl index c7e52d9e5dae..9f26b9b9a078 100755 --- a/webtools/tinderbox/globals.pl +++ b/webtools/tinderbox/globals.pl @@ -189,6 +189,13 @@ sub load_buildlog { my ($mailtime, $buildtime, $buildname, $errorparser, $buildstatus, $logfile,$binaryname); my ($buildrec, @treelist, $t); + if (!defined $maxdate) { + $maxdate = time(); + } + if (!defined $mindate) { + $mindate = $maxdate - 24*60*60; + } + if( $tree2 ne '' ){ @treelist = ($td1, $td2); }