clamp y-axis at 8hrs

git-svn-id: svn://10.0.0.236/trunk@134434 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cltbld%netscape.com 2002-11-26 01:02:59 +00:00
parent 6e93e54f2d
commit 2aa8fa3471

View File

@ -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 {