On 29.09.10 17:42, Rich Rauenzahn wrote: > This code strikes me as incorrect... Basically for files > 2GB, squid > does the accounting wrong! It's apparently just a filesystem overhead, which varies between filesystems but may eat some % of disk space. > Note that sizeof(int) is 4 in both 32bit and 64bit compilation models. > I believe that blks * fs.blksize overflows 32bit before it is right > shifted by 10 bits. if you want to use filesizes over 2GB on 32bit system, you must make your program to be 64-bit capable, and compile it that way. the same applies about using 64bit numbers. -- Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. 2B|!2B, that's a question!