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

13
LINES

< > BotCompany Repo | #1025967 // dm_onRemoteSystemStatusPosted

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (12226L/86K).

1  
// from machines that run #1020927 with postToServer=true
2  
// onStatus: (computer id, status text)
3  
svoid dm_onRemoteSystemStatusPosted(IVF2<S, S> onStatus) {
4  
  if (onStatus == null) ret;
5  
  dm_machineGroupChat();
6  
  dm_vmBus_onMessage_q gotFromMachineChat(voidfunc(S msg) {
7  
    S author = getAuthorOfSignedText(msg); // verified author
8  
    if (empty(author)) ret;
9  
    msg = trim(unsign(msg));
10  
    if (swic(msg, "system cpu:"))
11  
      onStatus.get(author, msg);
12  
  });
13  
}

Author comment

Began life as a copy of #1025930

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025967
Snippet name: dm_onRemoteSystemStatusPosted
Eternal ID of this version: #1025967/2
Text MD5: b50345a2f3d4d92a97cbc0b78e98d6eb
Transpilation MD5: 9fe2b919f1ef60dc476ed55992fddd53
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-04 11:43:19
Source code size: 476 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 315
Version history: 1 change(s)
Referenced in: [show references]