interval update

This commit is contained in:
shimon
2024-02-09 13:22:48 +02:00
parent 3788d5bceb
commit d0985db27d
+1 -4
View File
@@ -85,10 +85,7 @@ class Usage extends Action
$this->stats[$projectId]['keys'][$metric['key']] += $metric['value'];
}
var_dump(time() - $this->lastTriggeredTime > $aggregationInterval);
var_dump(time() - $this->lastTriggeredTime);
var_dump($aggregationInterval);
var_dump($this->keys);
// if keys crossed threshold or X time passed since the last send and there are some keys in the array ($this->stats)
if (
$this->keys >= self::KEYS_THRESHOLD ||