!7 p { final PGauge gauge1 = pMain(PGauge); hideConsole(); repeat with sleep 1 { GlobalMemory m = oshi_systemMemory(); double percent = 100-percentRatio(m.getAvailable()-m.getSwapUsed(), m.getTotal()); S title = "RAM used"; // scale to 180 //pgauge_showDiskSpace(gauge1, title, percent); // scale to 100 gauge1.setValue(percent, iround(percent) + "% of " + title); } }