Forum Discussion
Bernie_10630
Nimbostratus
Mar 05, 2012High 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 ...
Jeremy_Mann_141
Nimbostratus
Sep 25, 2014I think the formula is bit shifted, not a power of 32, given the following result:
statistics[] =
(Common.Statistic){
type = "STATISTIC_CLIENT_SIDE_BYTES_IN"
value =
(Common.ULong64){
high = 97
low = 841866601
}
time_stamp = 0
},
(Common.Statistic){
type = "STATISTIC_CLIENT_SIDE_BYTES_OUT"
value =
(Common.ULong64){
high = 390
low = 2041437072
}
time_stamp = 0
},
The formula for the result would be
value = high << 32 + low
Giving value = (97 << 32) + 841,866,601 = 417,453,694,313
The alternative would yield (97^32) + 841866601 = 3773075507922571775273744352333525624409237957166570158701128042
Jason_Cohen_417
Oct 31, 2018Historic F5 Account
The correct formula should be to left shift the high value.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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