Skip to content

Commit

Permalink
closes #1836 : add - tera-byte support
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 12, 2016
1 parent 2fab526 commit 233fb7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/utils/Misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ static function getSizeHumanReadable($size) {
} else {
if ($size < 1073741824) {
return sprintf("%0.2f", $size / 1048576) . " MB";
} else {
} else if ($size < 1099511627776) {
return sprintf("%0.2f", $size / 1073741824) . " GB";
} else {
return sprintf("%0.2f", $size / 1099511627776) . " TB";
}
}
}
Expand Down

0 comments on commit 233fb7c

Please sign in to comment.