Skip to content

Commit

Permalink
update db sysinfo when sysinfo from console
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Feb 22, 2024
1 parent 82c7065 commit 7912df3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agents/meshcore.js
Expand Up @@ -4733,8 +4733,11 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
}
case 'sysinfo': { // Return system information
getSystemInformation(function (results, err) {
if (results == null) { sendConsoleText(err, this.sessionid); } else {
if (results == null) {
sendConsoleText(err, this.sessionid);
} else {
sendConsoleText(JSON.stringify(results, null, 1), this.sessionid);
mesh.SendCommand({ action: 'sysinfo', sessionid: this.sessionid, data: results });
}
});
break;
Expand Down

0 comments on commit 7912df3

Please sign in to comment.