зеркало из https://github.com/mozilla/gecko-dev.git
clamp y-axis at 8hrs
This commit is contained in:
Родитель
a153255eb3
Коммит
5d8c1181a5
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче