summaryrefslogtreecommitdiff
path: root/pages/computers.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/computers.inc')
-rw-r--r--pages/computers.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/pages/computers.inc b/pages/computers.inc
index 0d41a23..56a1b5d 100644
--- a/pages/computers.inc
+++ b/pages/computers.inc
@@ -342,22 +342,6 @@ if (count($parts) === 2 || count($parts) === 3) {
<tbody>
<?php
- function prettySize($bytes) {
- if ($bytes > 1024) {
- if ($bytes > 1024**2) {
- if ($bytes > 1024**3) {
- return round($bytes / 1024**3, 1) . " GB";
- } else {
- return round($bytes / 1024**2, 1) . " MB";
- }
- } else {
- return round($bytes / 1024, 1) . " KB";
- }
- } else {
- return $bytes . " B";
- }
- }
-
uasort($computer["filesystems"], function ($a, $b) {
return $b["use"] - $a["use"];
});