From c0571c59b84303c881daa881339d9f5f9775028a Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 2 Mar 2022 17:38:22 +0545 Subject: [PATCH] fix --- app/tasks/usage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/usage.php b/app/tasks/usage.php index d68f1f95b1..b659740c14 100644 --- a/app/tasks/usage.php +++ b/app/tasks/usage.php @@ -418,7 +418,7 @@ $cli // Get total storage $dbForProject->setNamespace('_' . $projectId); - $storageTotal = $dbForProject->sum('tags', 'size'); + $storageTotal = $dbForProject->sum('deployments', 'size'); $time = (int) (floor(time() / 1800) * 1800); // Time rounded to nearest 30 minutes $id = \md5($time . '_30m_storage.deployments.total'); //Construct unique id for each metric using time, period and metric