Download Jar. Uses 994K of libraries. Click here for Pure Java version (8580L/44K).
!7 static int timeout = 10000; // TODO: Use WebSockets p { maxCharsInConsoleAndPrintLog(10000); final PGauge gauge1 = pMain(PGauge).type(2); final PGauge gauge2 = pMain(PGauge).type(2); final PGauge gauge3 = pMain(PGauge).type(2); setWindowsY(screenHeight()/2-pFrame(gauge1).getHeight()-10, centerArrangeWindows(coActivateFrames(pFrame(gauge1), pFrame(gauge2), pFrame(gauge3)))); hideConsole(); repeat with sleep 3 { pgauge_showSystemLoad(gauge1, "Old server load", parseDoubleOrMinus1(print(loadPageWithTimeoutOrNull(timeout, "http://botcompany.de/1001951/raw/system+load")))); pgauge_showSystemLoad(gauge2, "Very old server load", parseDouble(print(loadPageWithTimeoutOrNull(timeout, "http://tinybrain.de:8080/tb-int/diskspace.php?q=system+load")))); pgauge_showSystemLoad(gauge3, "New server load", parseDoubleOrMinus1(print(loadPageWithTimeoutOrNull(timeout, "http://butter.botcompany.de:8080/1001951/raw/system+load")))); } }
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: | 577 / 1924 |
Version history: | 13 change(s) |
Referenced in: | #1014295 - Show disk status of all 3 servers (OK) |