1 | static double systemLoad() { |
2 | double load = osMXBean().getSystemLoadAverage(); |
3 | if (load < 0) ret systemCPULoad(); // fallback for Windows |
4 | ret load; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, odhhsrjjbcgr, omdjrrnzbjjv, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1007640 |
Snippet name: | systemLoad - double value from OperatingSystemMXBean |
Eternal ID of this version: | #1007640/4 |
Text MD5: | 7ac37990603b305abafe15b9f726ca1f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-01 20:34:41 |
Source code size: | 158 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 463 / 526 |
Version history: | 3 change(s) |
Referenced in: | [show references] |