albinoman887
Regular Contributor
its just cosmetic anyways right?It's not that simple, as I don't store it anywhere, it's directly manipulated as a float, and sent as text to the web page:
Code:sprintf(result,"%.2f",(sys.totalswap * sys.mem_unit / (float)MBYTES));
The original bug was that the value wasn't multiplied by the unit size value (in your test, multiplying both values would give you 5 GB). If it still has issues reporting large values, then it's something else causing the whole calculation to fail (and it would be specific to ARM, as I couldn't reproduce the issue on a test case compiled for x86).