Download Jar. Uses 8319K of libraries. Click here for Pure Java version (4745L/25K).
!7 set flag Processing2. 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 #1014632
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: | #1016725 |
| Snippet name: | Show RAM usage as gauge (Processing 2 version, OK) |
| Eternal ID of this version: | #1016725/6 |
| Text MD5: | 12bc0a26552cb74db4dac9c0475562df |
| Transpilation MD5: | afa5a9d39eb0beaad0f28d92c02be79f |
| 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 15:00:43 |
| Source code size: | 458 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 712 / 1528 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |