iControl Apps - #05 - Rate Based Statistics
One of the key features of iControl is the ability to monitor statistics of the various objects on the system. Whether it's for capacity planning or auditing and billing purposes, the numbers behind...
Published Jul 24, 2008
Version 1.0MarcCauchy_5751
Aug 27, 2008Nimbostratus
You cannot bitshift but you can mulitply.
So why not use something like the below instead ?
Am I missing something ?
Generating compiled code on the fly seems like a bit overkill for this (though pretty cool)
Note : Untested function, *should* work as expected
function Convert-To64Bit([Int32] $high, [Int32] $low)
{
return $high * [Int64][System.Math]::Pow(2,32) + $low
}