mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
interval update
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user