Download Jar. Uses 8689K of libraries. Click here for Pure Java version (4737L/25K).
!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); } }
Began life as a copy of #1014314
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014632 |
Snippet name: | Show RAM usage as gauge |
Eternal ID of this version: | #1014632/7 |
Text MD5: | 7d86e4fc28dfbc8ceddcc09eeaaaace6 |
Transpilation MD5: | f70170dc03b293c41ba83b40ce57046d |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-30 14:48:08 |
Source code size: | 433 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 532 / 1401 |
Version history: | 6 change(s) |
Referenced in: | #1016725 - Show RAM usage as gauge (Processing 2 version, OK) |