Skip to content

Commit

Permalink
Rename usage_network_infinity to usage_bandwidth_infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleIOnic committed Jan 12, 2024
1 parent 78f7b18 commit 4cb4863
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Appwrite/Platform/Workers/Hamster.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ private function getStatsForProject(Document $project, Group $pools, Cache $cach
/**
* Workaround to combine network.inbound+network.outbound as network.
*/
$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"]);
Expand Down

0 comments on commit 4cb4863

Please sign in to comment.