summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-23 22:42:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-23 22:42:24 +0000
commit6064ed7b58b5254eb5a1edce1e259645c03d3d49 (patch)
tree43f0d54c585f6d42a4ae6a0ec29a66527433c53e /usr/local/www/guiconfig.inc
parentffbe9dae7ba20204c71776a1c97b5d2b0389c177 (diff)
downloadpfsense-6064ed7b58b5254eb5a1edce1e259645c03d3d49.zip
pfsense-6064ed7b58b5254eb5a1edce1e259645c03d3d49.tar.gz
Move format_bytes() to util.inc to match m0n0wall
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc12
1 files changed, 0 insertions, 12 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index ff1c65b..c704f5e 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -300,18 +300,6 @@ function print_info_box($msg) {
echo "</p>";
}
-function format_bytes($bytes) {
- if ($bytes >= 1073741824) {
- return sprintf("%.2f GB", $bytes/1073741824);
- } else if ($bytes >= 1048576) {
- return sprintf("%.2f MB", $bytes/1048576);
- } else if ($bytes >= 1024) {
- return sprintf("%.0f KB", $bytes/1024);
- } else {
- return sprintf("%d bytes", $bytes);
- }
-}
-
function get_std_save_message($ok) {
global $d_sysrebootreqd_path;
OpenPOWER on IntegriCloud