Forum Discussion
Jitesh_41550
Jul 18, 2011Nimbostratus
Convert CommonULong64 to a meaningful value
Hi,
My goal is to fetch virtual servers/addresses statistics from LTM and display the value on screen. This is effectively mocking the device web console's 'Network Maps'. When queried for stats ...
Hamish
Jul 28, 2011Cirrocumulus
Multiply the high value by 2^32 and add it to the low to get a 64bit number. The code will vary depending on language... But in C it would be something like
unsigned long long result=high<<32+low;
(Assumes that the high and low are unsigned integers)
In perl it'll vary, but you could try
my $quick64=($statValue->{high}*4294967296)+($statValue->{low}<0?(4294967296+$statValue->{low}):$statValue->{low});
Remember you need to treat the values as unsigned integers... if you treat them as signed, it'll not work correctly.
H
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