Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-09-17 19:26:17 +0300
committerGitHub <noreply@github.com>2020-09-17 19:26:17 +0300
commitaab506b5294dbc2b1742d5f559507b2092ac48c0 (patch)
treec25f4c238e1e6786174e5bbfd70074608cffe2f3
parent58958f73f420886f9c349c59ee8718e5819084e8 (diff)
parent6f73763eca812123215433b261840ec9eabf150c (diff)
Merge pull request #235 from nextcloud/bug/234/normalize-to-gbv20.0.0RC1
Update calculation for used and available disk space in gigabyte.
-rw-r--r--lib/Os.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Os.php b/lib/Os.php
index 4df6c85..01f086e 100644
--- a/lib/Os.php
+++ b/lib/Os.php
@@ -109,8 +109,8 @@ class Os implements IOperatingSystem {
foreach ($this->backend->getDiskInfo() as $disk) {
$data[] = [
- round($disk->getUsed() / 1024 / 1024 / 1024, 1),
- round($disk->getAvailable() / 1024 / 1024 / 1024, 1)
+ round($disk->getUsed() / 1024 , 1),
+ round($disk->getAvailable() / 1024, 1)
];
}