1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 09:32:17 +02:00

LANs in File Inspector #6

LANs in File Inspector #6
This commit is contained in:
MikeyGMT 2016-12-18 19:20:04 +00:00
parent d5f9b9ac5e
commit 66cb27b263

View File

@ -2,7 +2,7 @@
/*
* e107 website system
*
* Copyright (C) 2008-2013 e107 Inc (e107.org)
* Copyright (C) 2008-2016 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
@ -1250,7 +1250,7 @@ class file_inspector {
$data .= "| e107 website system\n";
$data .= "|\n";
$data .= "| Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)\n";
$data .= "| Copyright (C) 2008-2010 e107 Inc (e107.org)\n";
$data .= "| Copyright (C) 2008-2016 e107 Inc (e107.org)\n";
$data .= "|\n";
$data .= "| Released under the terms and conditions of the\n";
$data .= "| GNU General Public License (http://gnu.org).\n";
@ -1356,15 +1356,15 @@ class file_inspector {
$gb = 1024 * $mb;
$tb = 1024 * $gb;
if ($size < $kb) {
return $size." b";
return $size." ".CORE_LAN_B;
} else if($size < $mb) {
return round($size/$kb)." kB";
return round($size/$kb)." ".CORE_LAN_KB;
} else if($size < $gb) {
return round($size/$mb, $dec)." MB";
return round($size/$mb, $dec)." ".CORE_LAN_MB;
} else if($size < $tb) {
return round($size/$gb, $dec)." GB";
return round($size/$gb, $dec)." ".CORE_LAN_GB;
} else {
return round($size/$tb, $dec)." TB";
return round($size/$tb, $dec)." ".CORE_LAN_TB;
}
}