Uses 5404K of libraries. Click here for Pure Java version (14450L/99K).
1 | !7 |
2 | |
3 | sclass SwapCount extends DynBigNumber { |
4 | transient long[] startValues; |
5 | |
6 | void start { |
7 | super.start(); |
8 | setDescription("SWAPPED PAGES"); |
9 | GlobalMemory mem = oshi_systemMemory(); |
10 | startValues = new long[] { mem.getSwapPagesIn(), mem.getSwapPagesOut() }; |
11 | ownTimer(doEveryAndNow(1000, r actualUpdate)); |
12 | } |
13 | |
14 | void actualUpdate { |
15 | temp enter(); |
16 | //time2 { // It's like 1 ms |
17 | GlobalMemory mem = oshi_systemMemory(); |
18 | long in = mem.getSwapPagesIn()-startValues[0]; |
19 | long out = mem.getSwapPagesOut()-startValues[1]; |
20 | //} |
21 | setValue(in + " IN " + out + " OUT"); |
22 | } |
23 | } |
Began life as a copy of #1016151
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: | #1016235 |
Snippet name: | Swap Count [Dyn Module] |
Eternal ID of this version: | #1016235/11 |
Text MD5: | 3bcfc591532500b6d56c66c2129bf3d5 |
Transpilation MD5: | 426a51d07a1cdfb02d6bf1c27a952795 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-12 16:19:00 |
Source code size: | 633 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 459 / 1622 |
Version history: | 10 change(s) |
Referenced in: | [show references] |