Hi,
I'm trying to do simple math calculations in order to show correct used disk space. The value I'm taking it from SNMP and then I'm doing a simple transformation as follows:
For example when $1 is equal to 1265236238 (which is actual value in my case), the result should be similar to 4.7133.
However it shows -0.001384
So my question is, how the hell did I get this value?
Cheers,
Iliyan
I'm trying to do simple math calculations in order to show correct used disk space. The value I'm taking it from SNMP and then I'm doing a simple transformation as follows:
Code Select
sub main()
{
return 4096 * $1 / 1099511627776;
}
For example when $1 is equal to 1265236238 (which is actual value in my case), the result should be similar to 4.7133.
However it shows -0.001384
So my question is, how the hell did I get this value?
Cheers,
Iliyan