From d477dbb1e438aa7c58feeaf2cb360d8565918f88 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 9 Feb 2016 06:29:29 +0545 Subject: Use IEC MiB units on dashboard 1) physmem calculation is already in MiB 2) swapinfo -m actually reports in MiB - good 3) The code that gathers the disk space data already uses "df -h" which reports in IEC units, but the output just has the single char "M", "G" etc. We can always add "iB" here. As it happens all these numbers are already in powers of 1024 - it just needs the "iB" to be explicitly shown. --- src/usr/local/www/widgets/widgets/system_information.widget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index d624e42..9bbaac1 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -269,7 +269,7 @@ $filesystems = get_mounted_filesystems();
- % of MB + % of MiB @@ -281,7 +281,7 @@ $filesystems = get_mounted_filesystems();
- % of MB + % of MiB @@ -293,7 +293,7 @@ $filesystems = get_mounted_filesystems(); - + iB % -- cgit v1.1