interval update
This commit is contained in:
parent
c1fb4ecf39
commit
3788d5bceb
1 changed files with 4 additions and 0 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue