Add missing default

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-06-03 08:33:05 +02:00
parent d9c4c9eb99
commit 931aca2fee
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Throttler {
* @param float $maxAgeHours
* @return int
*/
private function getCutoffTimestamp(float $maxAgeHours): int {
private function getCutoffTimestamp(float $maxAgeHours = 12.0): int {
return (new \DateTime())
->sub($this->getCutoff((int) ($maxAgeHours * 3600)))
->getTimestamp();