Hi,
I have found an error in disk.c . On line 661 is a calculation of a
multiplier which is of type float.
But the calculation happens with integers. Therefore if the result is lower
than 1 you will always get 0 (zero).
The effect is that you get for the absolut sizes on disks zero instead of
the correct value. The result is depending on the size of the disk.....
I have tested this on AIX 5.1 but i think this happens on other platforms
too.
Here is the paragraph which is affected:
Beginning with line 660 in disk.c
If (vfs.f_frsize > 255)
multiplier = vfs.f_frsize / 1024; <<<< this is wrong
Should be:
If (vfs.f_frsize > 255)
multiplier = ( ( float ) vfs.f_frsize ) / 1024.0 ; <<<< this is OK
Regards
Harald
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders