[pmwiki-users] UploadMaxSize - correct units?

Simon nzskiwi at gmail.com
Sun Jul 27 21:26:49 CDT 2008


Please be aware that there are standards for the naming of prefixes that can
be applied to units <http://www.unc.edu/~rowlett/units/sipm.html>.

See for example http://www.unc.edu/~rowlett/units/prefixes.html
and http://www.unc.edu/~rowlett/units/prefixes.html#binary

Do not confuse binary prefixes with Metric prefixes

eg metric prefixes <http://physics.nist.gov/cuu/Units/prefixes.html>

tera- (T-)

1012

1 trillion

giga- (G-)

109

1 billion

mega- (M-)

106

1 million

kilo- (k-)

103

1 thousand
and binary prefixes <http://physics.nist.gov/cuu/Units/binary.html>

kibi-

Ki-

210 = 1 024

mebi-

Mi-

220 = 1 048 576

gibi-

Gi-

230 = 1 073 741 824

tebi-

Ti-

240 = 1 099 511 627 776



On 10/07/2008, adam overton <a at plus1plus1plus.org> wrote:
>
>
>
> hi
> is the math of this correct?
> this is what's on the 'upload variables' page: http://www.pmwiki.org/
> wiki/PmWiki/UploadVariables#UploadPrefixQuota
>
>        $UploadMaxSize
>            Maximum size for uploading files (50000 octets by default)
>
>        Units are in bytes.
>         100K: 100000;
>          1MB: 1000000;
>          1GB: 1000000000;
>          1TB: 1000000000000;
>
> i'm getting mixed up because I also see notes on the UploadsAdmin
> page insisting that the following is correct:
>
>        100K: 102400;
>         1MB: 1048576;
>         1GB: 1073741824;
>         1TB: 1099511627776;
>
>
> the math i'm finding on the web is also confirming the latter...
> wondering which one to choose...
> thanks!
> adam
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 

http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080728/f13af376/attachment.html 


More information about the pmwiki-users mailing list