summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/repository.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/rest/repository.php')
-rw-r--r--admin/WebConsole/rest/repository.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/rest/repository.php b/admin/WebConsole/rest/repository.php
index bbd365ce..e5ce76bd 100644
--- a/admin/WebConsole/rest/repository.php
+++ b/admin/WebConsole/rest/repository.php
@@ -114,7 +114,7 @@ $app->get('/repository/images(/)', 'validateRepositoryApiKey',
$response['disk']['total'] = humanSize($total);
$response['disk']['used'] = humanSize($total - $free);
$response['disk']['free'] = humanSize($free);
- $response['disk']['percent'] = 100 - floor(100 * (100 - $free) / $total) . " %";
+ $response['disk']['percent'] = 100 - floor(100 * $free / $total) . " %";
// JSON response.
jsonResponse(200, $response);
} else {