1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

interval update

This commit is contained in:
shimon 2024-02-09 12:56:37 +02:00
parent c1fb4ecf39
commit 3788d5bceb

View file

@ -85,6 +85,10 @@ 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 ||