From 8093f034c0f13f29f11c39af94c692eec4aa9a8c Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 18 Oct 2022 03:53:07 +0000 Subject: [PATCH] fix inbound and outbount --- src/Appwrite/Usage/Stats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Usage/Stats.php b/src/Appwrite/Usage/Stats.php index d26f44c744..8bb83b2648 100644 --- a/src/Appwrite/Usage/Stats.php +++ b/src/Appwrite/Usage/Stats.php @@ -92,8 +92,8 @@ class Stats $this->statsd->increment('project.{scope}.network.requests' . $tags . ',method=' . \strtolower($httpMethod)); } - $inbound = $this->params['networkRequestSize'] ?? 0; - $outbound = $this->params['networkResponseSize'] ?? 0; + $inbound = $this->params['project.{scope}.network.inbound'] ?? 0; + $outbound = $this->params['project.{scope}.network.outbound'] ?? 0; $this->statsd->count('project.{scope}.network.inbound' . $tags, $inbound); $this->statsd->count('project.{scope}.network.outbound' . $tags, $outbound); $this->statsd->count('project.{scope}.network.bandwidth' . $tags, $inbound + $outbound);