Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1006505 // Show CPU load under Linux [WORKS]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (932L/7K/22K).

!7

p-typewriter {
  repeat {
    float cpu = linux_cpuLoad();
    print(formatDouble(cpu, 1) + "% CPU");
    setConsoleTitle(iround(cpu) + "% CPU use");
  }
}

Author comment

Began life as a copy of #1006501

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006505
Snippet name: Show CPU load under Linux [WORKS]
Eternal ID of this version: #1006505/1
Text MD5: 0681fbe6cc26ced913d84922be73502c
Transpilation MD5: 1ca2490b42eb984151d549ceb6b7015a
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-11 17:39:46
Source code size: 167 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 516 / 627
Referenced in: #1006512 - Show CPU load under Linux times cores [WORKS]