Using intval($value->serverStatus->memory->memFreeBytes) causes
a 32 bit overflow if there is more then 2GB. Use less-precise
but more robust floatval() instead of intval()
While there, add a test to prefer a more concurent encoder, and
refactor the code to make it more readable
Using intval($value->serverStatus->memory->memFreeBytes) causes a 32 bit overflow if there is more then 2GB. Use less-precise but more robust floatval() instead of intval()
While there, add a test to prefer a more concurent encoder, and refactor the code to make it more readable