From 34e2fa8e2d3d95e8304d7c478dbe67d44f84624e Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 10 Jun 2024 03:56:11 +0000 Subject: [PATCH] Remove MB_SECONDS from reduce function --- src/Appwrite/Platform/Workers/Usage.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Usage.php b/src/Appwrite/Platform/Workers/Usage.php index 49362485fb..54905ba0d0 100644 --- a/src/Appwrite/Platform/Workers/Usage.php +++ b/src/Appwrite/Platform/Workers/Usage.php @@ -226,13 +226,6 @@ class Usage extends Action ]; } - if (!empty($buildsGBHours['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_MB_SECONDS, - 'value' => ($buildsGBHours['value'] * -1), - ]; - } - if (!empty($executions['value'])) { $metrics[] = [ 'key' => METRIC_EXECUTIONS, @@ -246,13 +239,6 @@ class Usage extends Action 'value' => ($executionsCompute['value'] * -1), ]; } - - if (!empty($executionsGBHours['value'])) { - $metrics[] = [ - 'key' => METRIC_EXECUTIONS_MB_SECONDS, - 'value' => ($executionsGBHours['value'] * -1), - ]; - } break; default: break;