IC3 Networks
Verified User
- Joined
- Mar 28, 2010
- Messages
- 14
Hello,
I have been thinking of making DA more beautiful, so I bought Marina theme.
But there is one problem (not related to the theme),
check this picture:
http://img196.imageshack.us/img196/2254/78950918.png
the bandwidth is not converted to GB after passing 1024mb.
in php I use something like this to return a better size format:
My question is, where I can find the Account Summary so I can edit it with a php function to make it look better.
I have been thinking of making DA more beautiful, so I bought Marina theme.
But there is one problem (not related to the theme),
check this picture:
http://img196.imageshack.us/img196/2254/78950918.png
the bandwidth is not converted to GB after passing 1024mb.
in php I use something like this to return a better size format:
PHP:
function mksize($bytes)
{
if ($bytes < 1000 * 1024)
return number_format($bytes / 1024, 2) . " kB";
elseif ($bytes < 1000 * 1048576)
return number_format($bytes / 1048576, 2) . " MB";
elseif ($bytes < 1000 * 1073741824)
return number_format($bytes / 1073741824, 2) . " GB";
else
return number_format($bytes / 1099511627776, 2) . " TB";
}
My question is, where I can find the Account Summary so I can edit it with a php function to make it look better.