Skip to content

Commit

Permalink
Merge pull request #235 from nextcloud/bug/234/normalize-to-gb
Browse files Browse the repository at this point in the history
Update calculation for used and available disk space in gigabyte.
  • Loading branch information
MorrisJobke authored Sep 17, 2020
2 parents 58958f7 + 6f73763 commit aab506b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Os.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function getDiskData(): array {

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)
];
}

Expand Down

0 comments on commit aab506b

Please sign in to comment.