Added windows volume information to sysinfo

Bryan Roe committed Jan 20, 2021 at 12:49 UTC be81ba951890b0981074fc677e09330c3bf001f4
1 file changed +15 -1
agents/meshcore.js
+15 -1
@@ -1287,7 +1287,21 @@ function createMeshCore(agent) {
1287 if (results.hardware.windows.partitions) { for (var i in results.hardware.windows.partitions) { delete results.hardware.windows.partitions[i].Node; } }
1288 } catch (e) { }
1289 }
1290 - if (process.platform == 'win32') { results.pendingReboot = require('win-info').pendingReboot(); } // Pending reboot
1290 + if (process.platform == 'win32')
1291 + {
1292 + results.pendingReboot = require('win-info').pendingReboot(); // Pending reboot
1293 + if (require('identifiers').volumes != null)
1294 + {
1295 + try
1296 + {
1297 + results.volumes = require('identifiers').volumes();
1298 + }
1299 + catch (e)
1300 + {
1301 + }
1302 + }
1303 + }
1304 +
1305 /*
1306 if (process.platform == 'win32') {
1307 var defragResult = function (r) {