mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 12:52:50 +03:00
Added windows volume information to sysinfo
This commit is contained in:
parent
921e610d19
commit
be81ba9518
@ -1287,7 +1287,21 @@ function createMeshCore(agent) {
|
||||
if (results.hardware.windows.partitions) { for (var i in results.hardware.windows.partitions) { delete results.hardware.windows.partitions[i].Node; } }
|
||||
} catch (e) { }
|
||||
}
|
||||
if (process.platform == 'win32') { results.pendingReboot = require('win-info').pendingReboot(); } // Pending reboot
|
||||
if (process.platform == 'win32')
|
||||
{
|
||||
results.pendingReboot = require('win-info').pendingReboot(); // Pending reboot
|
||||
if (require('identifiers').volumes != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
results.volumes = require('identifiers').volumes();
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if (process.platform == 'win32') {
|
||||
var defragResult = function (r) {
|
||||
|
Loading…
Reference in New Issue
Block a user