mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 22:23:14 -05:00
add windows volumes to sysinfo
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
parent
9fc7fd2c5a
commit
f057633e14
@ -1814,10 +1814,10 @@ function getSystemInformation(func) {
|
||||
results.hardware.agentvers = process.versions;
|
||||
replaceSpacesWithUnderscoresRec(results);
|
||||
var hasher = require('SHA384Stream').create();
|
||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||
func(results);
|
||||
// results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||
// func(results);
|
||||
|
||||
/*
|
||||
|
||||
// On Windows platforms, get volume information - Needs more testing.
|
||||
if (process.platform == 'win32')
|
||||
{
|
||||
@ -1828,14 +1828,14 @@ function getSystemInformation(func) {
|
||||
var p = require('identifiers').volumes_promise();
|
||||
p.then(function (res)
|
||||
{
|
||||
results.volumes = res;
|
||||
results.hardware.windows.volumes = res;
|
||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||
func(results);
|
||||
});
|
||||
}
|
||||
else if (require('identifiers').volumes != null)
|
||||
{
|
||||
results.volumes = require('identifiers').volumes();
|
||||
results.hardware.windows.volumes = require('identifiers').volumes();
|
||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||
func(results);
|
||||
}
|
||||
@ -1850,7 +1850,7 @@ function getSystemInformation(func) {
|
||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||
func(results);
|
||||
}
|
||||
*/
|
||||
|
||||
} catch (ex) { func(null, ex); }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user