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

27
LINES

< > BotCompany Repo | #1011322 // computerInjectionsData

JavaX fragment (include)

static L<Map> computerInjectionsData() ctex {
  long time = sysNow();
  new L<Map> l;
  for (DialogIO vm : talkToAllVMs()) {
    pcall {
      int vmPort = vm.getPort();
      S x = vm.ask("get injections");
      S mem = dropUntilColon(vm.ask("how much memory are you consuming"));
      //print("VM " + vmPort + " injections: " + x);
      L injections = cast safeUnstructure(x);

      for (O inj : injections) pcall{
        S progID = formatSnippetID((S) get(inj, "progID"));
        l.add(litorderedmap(
          "Program name", getSnippetTitle(progID),
          "Program ID", progID,
          "VM Size (Java)", mem,
          "VM", vmPort,
          "More info", isTrue(get(inj, "mainDone")) ? "main done" : "main running",
          "Injection ID", get(inj, "injectionID")));
      }
    }
    vm.close();
  }
  done2(time, "Scanned " + n(l, "VMs"));
  ret l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011322
Snippet name: computerInjectionsData
Eternal ID of this version: #1011322/4
Text MD5: 883c1a8927ac89ccb24631ff4eb913bc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-29 21:37:39
Source code size: 898 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 486
Version history: 3 change(s)
Referenced in: [show references]