BTW to convert to gigabytes, use the number 1073741824 instead .. ;)
Printable View
BTW to convert to gigabytes, use the number 1073741824 instead .. ;)
It works for me on Windows XP.
Update:
If you use the Total Space expression, that works.. It seems to be an error with the get FreeSpace expression ..
Can anyone else verify?
-Mel
It's probably trying to return the size as a 32-bit integer (i.e. limited to 2 GB). Using 32-bit floating point numbers the number is nearly unlimited, but isn't perfectly accurate (this is probably what the total space expression is returning).
Melligeorgiou, try to add ".0" at the end of your operator. But I think your conversion is false :
39991275520/1048576.0
;)
The above assumes that the first value is in 'bytes'. It definately works with the TotalSpace expression. I have a feeling that the freespace expression is in a different format (i think you said they were in 'bits'?)
I'll fiddle around with it a bit more..
BTW - I'm pretty sure the conversion is right (unless I've made some silly mistake! LOL), I was getting my conversion information here:
http://familyinternet.about.com/cs/computinghelp/l/aa052401a.htm
-Mel ;)
Total space of kernel is not in bytes but in bits ! ;)
So like I've said it's wrong I think.
LOL .. But the conversion I'm using is for 'bytes' .. And it works perfectly for Total Space, just not freespace? LOL
1,073,741,824 Bytes = 1 Gigabyte (GB) ..so to find the GB value, you need to:
'DiskTotalSpace / 1073741824.0'
When I do the above and compare to the 'byte' value in the properties for the C drive, the byte value is the same in both MMF and the C properties .. So it must be right?
Are you sure the Total Space is not in bytes, and the free space is in bits? If I'm doing something obviously silly, someone tell me! haha ;)
-Mel