Version 2.0.1 - minor patch

This commit is contained in:
Sebastian Hildebrandt 2016-01-07 11:48:19 +01:00
parent 7847e87a8b
commit 7ee9e93fcf
2 changed files with 7 additions and 5 deletions

View File

@ -37,7 +37,7 @@ New Functions
- `system`: hardware info (manufacturer, product/model name, version, serial, uuid)
- `networkConnections`: number of active connections
- `inetLatency`: latency in ms to external resource (internet)
- `getSystemData`: returns on json object with static data at once (OS, CPU, Network Interfaces - they should not change until restarted)
- `getStaticData`: returns on json object with static data at once (OS, CPU, Network Interfaces - they should not change until restarted)
- `getDynamicData`: returns on json object with all dynamic data at once (e.g. for monitoring agents)
- `getAllData`: returns on json object with all data (static and dynamic) at once
@ -189,7 +189,7 @@ This library is splitted in several sections:
| - status | X | X | status code |
| - ms | X | X | response time in ms |
| si.inetLatency(cb) | X | X | response-time (ms) to external ressource |
| si.getSystemData(cb) | X | X | all static data at once |
| si.getStaticData(cb) | X | X | all static data at once |
| si.getDynamicData(cb,srv,iface) | X | X | all dynamic data at once |
| si.getAllData(cb,srv,iface) | X | X | all data at once |
@ -229,6 +229,7 @@ I am happy to discuss any comments and suggestions. Please feel free to contact
| 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() |

View File

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