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).

!7

static int timeout = 10000;

// TODO: spam

p {
  final PGauge gauge1 = pMain(PGauge);
  hideConsole();

  repeat with sleep 10 {
    S cmd = "disk space";
    new Best<S> fullest;
    for (S domain : mechList("Primary server domains"))
      fullest.put(domain, parseDiskSpacePercentage(serverDiskSpace(domain)));
    pgauge_showDiskSpace(gauge1, fullest! + " has the fullest disk", fullest.bestScore());
  }
}

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: 461 / 1264
Version history: 5 change(s)
Referenced in: [show references]