Download Jar. Uses 8319K of libraries. Click here for Pure Java version (4745L/25K).
1 | !7 |
2 | |
3 | set flag Processing2. |
4 | |
5 | p { |
6 | final PGauge gauge1 = pMain(PGauge); |
7 | hideConsole(); |
8 | |
9 | repeat with sleep 1 { |
10 | GlobalMemory m = oshi_systemMemory(); |
11 | double percent = 100-percentRatio(m.getAvailable()-m.getSwapUsed(), m.getTotal()); |
12 | S title = "RAM used"; |
13 | |
14 | // scale to 180 |
15 | //pgauge_showDiskSpace(gauge1, title, percent); |
16 | |
17 | // scale to 100 |
18 | gauge1.setValue(percent, iround(percent) + "% of " + title); |
19 | } |
20 | } |
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: | 448 / 960 |
Version history: | 5 change(s) |
Referenced in: | [show references] |