If rate > 1600, limit it to 1600 to prevent logged errors

This commit is contained in:
Isaac Connor 2022-01-20 11:51:08 -05:00
parent 24a9dcbf47
commit 7748616992
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ if (isset($_REQUEST['rate']) ) {
} else {
$rate = reScale(RATE_BASE, $monitor->DefaultRate(), ZM_WEB_DEFAULT_RATE);
}
if ($rate > 1600) {
$rate = 1600;
zm_setcookie('zmEventRate', $rate);
}
if (isset($_REQUEST['scale'])) {
$scale = validInt($_REQUEST['scale']);