Fixed meshcode.js issue with sysinfo on Linux

This commit is contained in:
Ylian Saint-Hilaire 2019-08-09 11:13:09 -07:00
parent 62763ee065
commit 14c89c7bc1
1 changed files with 2 additions and 1 deletions

View File

@ -1824,8 +1824,9 @@ function createMeshCore(agent)
break;
}
case 'sysinfo': { // Return system information
var results = { hardware: require('identifiers').get(), pendingReboot: require('win-info').pendingReboot() }; // Hardware && pending reboot
var results = { hardware: require('identifiers').get() }; // Hardware && pending reboot
if (process.platform == 'win32') {
results.pendingReboot = require('win-info').pendingReboot();
var defragResult = function (r) {
if (typeof r == 'object') { results[this.callname] = r; }
if (this.callname == 'defrag') {