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

27
LINES

< > BotCompany Repo | #1011322 // computerInjectionsData

JavaX fragment (include)

1  
static L<Map> computerInjectionsData() ctex {
2  
  long time = sysNow();
3  
  new L<Map> l;
4  
  for (DialogIO vm : talkToAllVMs()) {
5  
    pcall {
6  
      int vmPort = vm.getPort();
7  
      S x = vm.ask("get injections");
8  
      S mem = dropUntilColon(vm.ask("how much memory are you consuming"));
9  
      //print("VM " + vmPort + " injections: " + x);
10  
      L injections = cast safeUnstructure(x);
11  
12  
      for (O inj : injections) pcall{
13  
        S progID = formatSnippetID((S) get(inj, "progID"));
14  
        l.add(litorderedmap(
15  
          "Program name", getSnippetTitle(progID),
16  
          "Program ID", progID,
17  
          "VM Size (Java)", mem,
18  
          "VM", vmPort,
19  
          "More info", isTrue(get(inj, "mainDone")) ? "main done" : "main running",
20  
          "Injection ID", get(inj, "injectionID")));
21  
      }
22  
    }
23  
    vm.close();
24  
  }
25  
  done2(time, "Scanned " + n(l, "VMs"));
26  
  ret l;
27  
}

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: 443 / 489
Version history: 3 change(s)
Referenced in: [show references]