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

// from machines that run #1020927 with postToServer=true
// onStatus: (computer id, status text)
svoid dm_onRemoteSystemStatusPosted(IVF2<S, S> onStatus) {
  if (onStatus == null) ret;
  dm_machineGroupChat();
  dm_vmBus_onMessage_q gotFromMachineChat(voidfunc(S msg) {
    S author = getAuthorOfSignedText(msg); // verified author
    if (empty(author)) ret;
    msg = trim(unsign(msg));
    if (swic(msg, "system cpu:"))
      onStatus.get(author, msg);
  });
}

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: 213 / 313
Version history: 1 change(s)
Referenced in: [show references]