Add missing default
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d9c4c9eb99
commit
931aca2fee
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue