Skip to content
Snippets Groups Projects
Commit 7512e2ed authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: set storage limit as disk_total_space instead of free space

parent 707dd080
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment