From 7512e2ed1ff5656cd63a4fc2524296dbb8b4164a Mon Sep 17 00:00:00 2001
From: Yassine Doghri <yassine@doghri.fr>
Date: Wed, 7 Sep 2022 08:27:28 +0000
Subject: [PATCH] fix: set storage limit as disk_total_space instead of free
 space

---
 modules/Admin/Controllers/DashboardController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Admin/Controllers/DashboardController.php b/modules/Admin/Controllers/DashboardController.php
index 14057bcd0e..94cb7e8b93 100644
--- a/modules/Admin/Controllers/DashboardController.php
+++ b/modules/Admin/Controllers/DashboardController.php
@@ -53,7 +53,7 @@ class DashboardController extends BaseController
         $appStorageLimit = config('App')
             ->storageLimit;
         if ($appStorageLimit === null || $appStorageLimit < 0) {
-            $storageLimitBytes = disk_free_space('./');
+            $storageLimitBytes = disk_total_space('./');
         } else {
             $storageLimitBytes = $appStorageLimit * 1000000000;
         }
-- 
GitLab