From f9d6da6672186d065ec1093eb10983d5f5b6d3ed Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 17 Jan 2024 21:58:16 +0200 Subject: [PATCH] hamster additions --- src/Appwrite/Platform/Workers/Hamster.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Hamster.php b/src/Appwrite/Platform/Workers/Hamster.php index aded2a664c..6acbc386b0 100644 --- a/src/Appwrite/Platform/Workers/Hamster.php +++ b/src/Appwrite/Platform/Workers/Hamster.php @@ -300,10 +300,10 @@ class Hamster extends Action }); /** - * Workaround to combine network.inbound+network.outbound as network. + * Workaround to combine network.Inbound+network.outbound as bandwidth. */ - $statsPerProject["usage_network_infinity"] = $statsPerProject["usage_inbound_infinity"] + $statsPerProject["usage_outbound_infinity"]; - $statsPerProject["usage_network_24h"] = $statsPerProject["usage_inbound_24h"] + $statsPerProject["usage_outbound_24h"]; + $statsPerProject["usage_bandwidth_infinity"] = $statsPerProject["usage_inbound_infinity"] + $statsPerProject["usage_outbound_infinity"]; + $statsPerProject["usage_bandwidth_24h"] = $statsPerProject["usage_inbound_24h"] + $statsPerProject["usage_outbound_24h"]; unset($statsPerProject["usage_outbound_24h"]); unset($statsPerProject["usage_inbound_24h"]); unset($statsPerProject["usage_outbound_infinity"]);