mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 15:03:25 +03:00
Fixed meshcode.js issue with sysinfo on Linux
This commit is contained in:
parent
791868be0c
commit
ed7f1a549a
@ -1824,8 +1824,9 @@ function createMeshCore(agent)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'sysinfo': { // Return system information
|
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') {
|
if (process.platform == 'win32') {
|
||||||
|
results.pendingReboot = require('win-info').pendingReboot();
|
||||||
var defragResult = function (r) {
|
var defragResult = function (r) {
|
||||||
if (typeof r == 'object') { results[this.callname] = r; }
|
if (typeof r == 'object') { results[this.callname] = r; }
|
||||||
if (this.callname == 'defrag') {
|
if (this.callname == 'defrag') {
|
||||||
|
Loading…
Reference in New Issue
Block a user