mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-05 02:38:05 -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;
|
results.hardware.agentvers = process.versions;
|
||||||
replaceSpacesWithUnderscoresRec(results);
|
replaceSpacesWithUnderscoresRec(results);
|
||||||
var hasher = require('SHA384Stream').create();
|
var hasher = require('SHA384Stream').create();
|
||||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
// results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||||
func(results);
|
// func(results);
|
||||||
|
|
||||||
/*
|
|
||||||
// On Windows platforms, get volume information - Needs more testing.
|
// On Windows platforms, get volume information - Needs more testing.
|
||||||
if (process.platform == 'win32')
|
if (process.platform == 'win32')
|
||||||
{
|
{
|
||||||
@ -1828,14 +1828,14 @@ function getSystemInformation(func) {
|
|||||||
var p = require('identifiers').volumes_promise();
|
var p = require('identifiers').volumes_promise();
|
||||||
p.then(function (res)
|
p.then(function (res)
|
||||||
{
|
{
|
||||||
results.volumes = res;
|
results.hardware.windows.volumes = res;
|
||||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||||
func(results);
|
func(results);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (require('identifiers').volumes != null)
|
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');
|
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||||
func(results);
|
func(results);
|
||||||
}
|
}
|
||||||
@ -1850,7 +1850,7 @@ function getSystemInformation(func) {
|
|||||||
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||||
func(results);
|
func(results);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
} catch (ex) { func(null, ex); }
|
} catch (ex) { func(null, ex); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user