Commit e927afba authored by maxime mano's avatar maxime mano
Browse files

update get_octet_string_representation (kb to kB)

parent eff1b51e
......@@ -115,7 +115,7 @@ class tx_nG6_utils {
* @param string $size
*/
function get_octet_string_representation($size) {
$octets_link = array("bytes", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb");
$octets_link = array("Bytes", "kB", "MB", "GB", "TB", "PB", "EB", "ZB");
$p = (int)(ceil((float)(strlen(strval($size)))/(float)(3) - (float)(1)));
$pow_needed = $p * 10;
$pow_needed = pow(2, $pow_needed);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment