[ previous ] [ next ] [ threads ]
 
 From:  "Jonathan De Graeve" <Jonathan dot De dot Graeve at imelda dot be>
 To:  "Stefan Frank" <Mono dot Developer at RootServices dot Biz>, "MonoWall-Developers List" <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall-dev] 2GB limit
 Date:  Sun, 5 Mar 2006 13:17:12 +0100
I tested the format_bytes function out, it supports >2GB data without
any problem :)

J.

-- 
Jonathan De Graeve
Network/System Administrator
Imelda vzw
Informatica Dienst
+32 15/50.52.98
jonathan dot de dot graeve at imelda dot be

---------
Always read the manual for the correct way to do things because the
number of incorrect ways to do things is almost infinite
---------

> -----Oorspronkelijk bericht-----
> Van: Stefan Frank [mailto:Mono dot Developer at RootServices dot Biz]
> Verzonden: zaterdag 4 maart 2006 16:57
> Aan: Jonathan De Graeve; MonoWall-Developers List
> Onderwerp: Re: [m0n0wall-dev] 2GB limit
> 
> Hello,
> 
> about what for a function (limit) are you talking with that code?
> 
> --
> Best regards,
> Stefan Frank
> 
> Looking for Monowall Adjustment?
> http://M0n0WaLL.RootServices.Biz
> 
> Jonathan De Graeve schrieb:
> > Can this function handle more then 2GB (or even more then 4GB)?
> >
> > function format_bytes($bytes) {
> >
> >> ---if ($bytes >= 1073741824) {
> >> --->---return sprintf("%.2f GB", $bytes/1073741824);
> >> ---} else if ($bytes >= 1048576) {
> >> --->---return sprintf("%.2f MB", $bytes/1048576);
> >> ---} else if ($bytes >= 1024) {
> >> --->---return sprintf("%.0f KB", $bytes/1024);
> >> ---} else {
> >> --->---return sprintf("%d bytes", $bytes);
> >> ---}
> >>
> > }
> >
> >
>