diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-23 22:42:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-23 22:42:24 +0000 |
commit | 6064ed7b58b5254eb5a1edce1e259645c03d3d49 (patch) | |
tree | 43f0d54c585f6d42a4ae6a0ec29a66527433c53e /usr/local/www/guiconfig.inc | |
parent | ffbe9dae7ba20204c71776a1c97b5d2b0389c177 (diff) | |
download | pfsense-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-x | usr/local/www/guiconfig.inc | 12 |
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; |