Added windows volume information to sysinfo

This commit is contained in:
Bryan Roe 2021-01-20 12:49:15 -08:00
parent 921e610d19
commit be81ba9518

View File

@ -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) {