Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function convBytes($bytes) {
- if ($bytes > 1024) {
- $bytes = "$bytes / 1024";
- if ($bytes > 1024) {
- $bytes = "$bytes / 1024";
- if ($bytes > 1024) {
- $bytes = "$bytes / 1024";
- if ($bytes > 1024) {
- $bytes = "$bytes / 1024"." TB";
- } else {
- $bytes = "$bytes GB";}
- } else {
- $bytes = "$bytes MB";}
- } else {
- $bytes = "$bytes KB";}
- } else {
- $bytes = "$bytes Bytes";}
- }
Add Comment
Please, Sign In to add comment