mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
fix storage stats
This commit is contained in:
parent
027dafe906
commit
8cd4060334
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class Stats
|
||||||
|
|
||||||
foreach ($storageMertics as $metric) {
|
foreach ($storageMertics as $metric) {
|
||||||
$value = $this->params[$metric] ?? 0;
|
$value = $this->params[$metric] ?? 0;
|
||||||
if ($value == 1 || $value == -1) {
|
if ($value >= 1 || $value == -1) {
|
||||||
$storageTags = $tags . ",bucketId=" . ($this->params['bucketId'] ?? '');
|
$storageTags = $tags . ",bucketId=" . ($this->params['bucketId'] ?? '');
|
||||||
$this->statsd->count($metric . $storageTags, $value);
|
$this->statsd->count($metric . $storageTags, $value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue