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

18
LINES

< > BotCompany Repo | #1014314 // Show combined disk status of all 3 servers (OK)

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

Download Jar. Uses 994K of libraries. Click here for Pure Java version (8972L/48K).

1  
!7
2  
3  
static int timeout = 10000;
4  
5  
// TODO: spam
6  
7  
p {
8  
  final PGauge gauge1 = pMain(PGauge);
9  
  hideConsole();
10  
11  
  repeat with sleep 10 {
12  
    S cmd = "disk space";
13  
    new Best<S> fullest;
14  
    for (S domain : mechList("Primary server domains"))
15  
      fullest.put(domain, parseDiskSpacePercentage(serverDiskSpace(domain)));
16  
    pgauge_showDiskSpace(gauge1, fullest! + " has the fullest disk", fullest.bestScore());
17  
  }
18  
}

Author comment

Began life as a copy of #1014295

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: #1014314
Snippet name: Show combined disk status of all 3 servers (OK)
Eternal ID of this version: #1014314/6
Text MD5: 240530d271c21f1606cf43754d96e194
Transpilation MD5: e7ab79b3702db8eb70a15bcd10bb7448
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 02:45:39
Source code size: 432 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 463 / 1266
Version history: 5 change(s)
Referenced in: [show references]