Download Jar. Uses 994K of libraries. Click here for Pure Java version (8580L/44K).
1 | !7 |
2 | |
3 | static int timeout = 10000; |
4 | |
5 | // TODO: Use WebSockets |
6 | |
7 | p { |
8 | maxCharsInConsoleAndPrintLog(10000); |
9 | final PGauge gauge1 = pMain(PGauge).type(2); |
10 | final PGauge gauge2 = pMain(PGauge).type(2); |
11 | final PGauge gauge3 = pMain(PGauge).type(2); |
12 | setWindowsY(screenHeight()/2-pFrame(gauge1).getHeight()-10, centerArrangeWindows(coActivateFrames(pFrame(gauge1), pFrame(gauge2), pFrame(gauge3)))); |
13 | hideConsole(); |
14 | |
15 | repeat with sleep 3 { |
16 | pgauge_showSystemLoad(gauge1, "Old server load", parseDoubleOrMinus1(print(loadPageWithTimeoutOrNull(timeout, "http://botcompany.de/1001951/raw/system+load")))); |
17 | pgauge_showSystemLoad(gauge2, "Very old server load", parseDouble(print(loadPageWithTimeoutOrNull(timeout, "http://tinybrain.de:8080/tb-int/diskspace.php?q=system+load")))); |
18 | pgauge_showSystemLoad(gauge3, "New server load", parseDoubleOrMinus1(print(loadPageWithTimeoutOrNull(timeout, "http://butter.botcompany.de:8080/1001951/raw/system+load")))); |
19 | } |
20 | } |
Began life as a copy of #1014278
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014291 |
Snippet name: | Show system load of all 3 servers (OK) |
Eternal ID of this version: | #1014291/14 |
Text MD5: | 271238f6e2a839eee767c741bce0282b |
Transpilation MD5: | f9a5b736f24f9261795b494207dc8cad |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 15:17:17 |
Source code size: | 981 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 1924 |
Version history: | 13 change(s) |
Referenced in: | [show references] |