From 8cd406033416c54ec8a16eaca7fdff1c71bc1603 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 18 Oct 2022 07:38:05 +0000 Subject: [PATCH] fix storage stats --- src/Appwrite/Usage/Stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Usage/Stats.php b/src/Appwrite/Usage/Stats.php index 20007579ea..06d43ea0c9 100644 --- a/src/Appwrite/Usage/Stats.php +++ b/src/Appwrite/Usage/Stats.php @@ -155,7 +155,7 @@ class Stats foreach ($storageMertics as $metric) { $value = $this->params[$metric] ?? 0; - if ($value == 1 || $value == -1) { + if ($value >= 1 || $value == -1) { $storageTags = $tags . ",bucketId=" . ($this->params['bucketId'] ?? ''); $this->statsd->count($metric . $storageTags, $value); }