From 2aa8fa3471705c0691c40d4479e4472802eb7c17 Mon Sep 17 00:00:00 2001 From: "cltbld%netscape.com" Date: Tue, 26 Nov 2002 01:02:59 +0000 Subject: [PATCH] clamp y-axis at 8hrs git-svn-id: svn://10.0.0.236/trunk@134434 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/tools/tinderbox/report-tree-status.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/tools/tinderbox/report-tree-status.pl b/mozilla/tools/tinderbox/report-tree-status.pl index 6afa43c7f84..8f3a5faf47c 100755 --- a/mozilla/tools/tinderbox/report-tree-status.pl +++ b/mozilla/tools/tinderbox/report-tree-status.pl @@ -169,6 +169,13 @@ sub is_tree_open { # Report time in hours. $time_since_open = ($now - $time_tree_opened)/3600; print "time_since_open (hours) = $time_since_open\n"; + + # Clamp time to 8 hours so we don't get huge spikes for + # extended open times (weekends) + if($time_since_open > 28800) { + $time_since_open = 28800; + } + } } else {