diff --git a/index.php b/index.php index 51dd733..627d8ba 100644 --- a/index.php +++ b/index.php @@ -96,7 +96,44 @@ $announcement = $announcementResult && $announcementResult->num_rows > 0 ? $anno -
+ + +
+ = 1073741824) { + return round($bytes / 1073741824, 2) . ' GB'; + } elseif ($bytes >= 1048576) { + return round($bytes / 1048576, 2) . ' MB'; + } elseif ($bytes >= 1024) { + return round($bytes / 1024, 2) . ' KB'; + } else { + return $bytes . ' B'; + } + } + ?> +
+ 磁盘使用情况 + / +
+
+
%
+