mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-17 03:48:32 +00:00
Update RootView.mc
Memory usage decimal place was never used due to integer arithmetic. A single character changes fixed that.
This commit is contained in:
@ -139,7 +139,7 @@ class RootView extends ScalableView {
|
||||
mMenuStatus.draw(dc);
|
||||
mMemText.draw(dc);
|
||||
var stats = System.getSystemStats();
|
||||
var memUsed = (100 * stats.usedMemory) / stats.totalMemory;
|
||||
var memUsed = (100f * stats.usedMemory) / stats.totalMemory;
|
||||
mMemStatus.setText(memUsed.format("%.1f") + "%");
|
||||
if (stats.usedMemory > Globals.scLowMem * stats.totalMemory) {
|
||||
mMemStatus.setColor(Graphics.COLOR_RED);
|
||||
|
Reference in New Issue
Block a user