NumBlocks=2147483647 (1TB)
size=(NumBlocks/bpm*100+512)/1024; = 102,400
>=102400 yes
size=(size*100+512)/1024/100; = 100 (TB)
sprintf(BTUBuffer,"%lu.%02lu %s",size/100,size % 100,unit); = 1.00 TB
NumBlocks=3221225470 (1.5TB)
size=(NumBlocks/bpm*100+512)/1024; = 153,600
>=102400 yes
size=(size*100+512)/1024/100; = 150 (TB)
sprintf(BTUBuffer,"%lu.%02lu %s",size/100,size % 100,unit); = 1.50 TB
I know I will never see a TB drive on OS3.9, but if someone uses it on OS4, they all seem to have 1TB or 2TB drives.
|