Forum Discussion
Bernie_10630
Mar 05, 2012Nimbostratus
High Low value in System.Statistics.get_global_statistics
I've been exploring iControl System.System Info and System.Statistics and don't understand the high/low values. In some case the high value is zero while in others its not. Could some explain this ...
Mar 05, 2012
Lots of history in that question. When we first developed iControl in 2001, the SOAP standard and encodings didn't support 64 bit numbers. To add to that, Java didn't support unsigned values so we were stuck signed ints for the high and low values (thus the negative numbers in some of them). We then had to find a way to turn our 64 bit statistic values into numbers that the various client toolkits supported. In hindsight, we probably should have also passed down a string with the 64 bit value in it.
As for the high and low values, those are the high and low 32 bits of the 64 bit number.
The calculation to convert a high and low 32bit value is this:
64 bit value = ((unsigned long)high)^32 + (unsigned long)low.
The fact that some are 0 and some aren't, just means the numbers are bigger.
Hope this helps...
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects