Version 2.0.1 - minor patch
This commit is contained in:
+4
-3
@@ -67,6 +67,7 @@
|
||||
// --------------------------------
|
||||
//
|
||||
// version date comment
|
||||
// 2.0.1 2016-01-07 minor patch
|
||||
// 2.0.0 2016-01-07 new major version 2.0
|
||||
// 1.0.7 2015-11-27 fixed: si.network_speed()
|
||||
// 1.0.6 2015-09-17 fixed: si.users()
|
||||
@@ -1229,7 +1230,7 @@ exports.inetLatency = inetLatency;
|
||||
// get static data - they should not change until restarted
|
||||
|
||||
|
||||
function getSystemData(callback) {
|
||||
function getStaticData(callback) {
|
||||
if (_windows) {
|
||||
callback(NOT_SUPPORTED);
|
||||
}
|
||||
@@ -1253,7 +1254,7 @@ function getSystemData(callback) {
|
||||
})
|
||||
}
|
||||
|
||||
exports.getSystemData = getSystemData;
|
||||
exports.getStaticData = getStaticData;
|
||||
|
||||
// --------------------------
|
||||
// get all dynamic data - e.g. for monitoring agents
|
||||
@@ -1332,7 +1333,7 @@ function getAllData(callback, srv, network) {
|
||||
|
||||
var data = {};
|
||||
|
||||
getSystemData(function(res) {
|
||||
getStaticData(function(res) {
|
||||
data = res;
|
||||
getDynamicData(function(res) {
|
||||
for(var key in res) {
|
||||
|
||||
Reference in New Issue
Block a user