Is there an easy way to change wakaba, so that it displays the imagesize as KB and not B?
replacing all "<var $size> B" in futaba_style.pl with "<var $size/1024> KB" should do the trick
Maybe this should go into the stock distro. Less clutter.
that worked. but now i have like 8 digits after comma. (322.4212342 KB) An easy way to fix this?
var int($size/1024)
I presume you don't care about it being really accurate.
The whole thing with /1024 confuses me as there's this massive confusion between 1000^x and 1024^x that I still don't quite understand. (Hard drive is 1000 and windows counts by 1024 which makes your HDD seem smaller than it is.)
Actually, no, hard drives only count in 1000:s because that makes them seem bigger. Traditionally storage space is always counted in 1024:s.
1000 = KB
1024 = KiB
If you wanted to be some sort of SI nazi, that'd be "kB". That would make 1024 B "1 kiB", which is even more annoying than what you suggested. This whole "kibibytes" things is horrendously retarded, and nobody really cares. Just drop it.
>>9
it'; actually "k" and "Ki"... and of course it's retarded, SI is french.