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:
parent
6e93e54f2d
commit
2aa8fa3471
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user