From 8d0f4bb0d61c77011475ba28a79a40dc5adff4ee Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sat, 24 Jun 2017 18:04:04 +0200 Subject: [PATCH] bug fix getDynamicData(), getAllData() - mem --- CHANGELOG.md | 1 + README.md | 7 ++++--- lib/index.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc90811..d3ba223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.23.4 | 2017-06-24 | bug fix `getDynamicData(), getAllData() - mem` | | 3.23.3 | 2017-06-23 | updated docs | | 3.23.2 | 2017-06-23 | bug fix `battery` (windows) | | 3.23.1 | 2017-06-22 | updated docs | diff --git a/README.md b/README.md index 6282f61..c59f412 100644 --- a/README.md +++ b/README.md @@ -437,7 +437,7 @@ si.networkStats('eth1') .catch(error => console.error(error)); ``` -### Known Issues +## Known Issues #### OSX - Temperature Sensor @@ -466,16 +466,17 @@ In some cases we also discovered that `wmic` returned incorrect temperature valu In some cases you need to install the linux `sensors` package to be able to measure temperature e.g. on DEBIAN based systems by running `sudo apt-get install lm-sensors` -### *: Additional Notes +#### *: Additional Notes In `fsStats`, `disksIO` and `networkStats` the results per second values (rx_sec, IOPS, ...) are calculated beginning with the second call of the function. It is determined by calculating the difference of transferred bytes / IOs divided by the time between two calls of the function. -## Known Issues +#### Finding new issues I am happy to discuss any comments and suggestions. Please feel free to contact me if you see any possibility of improvement! + ## Comments If you have ideas or comments, please do not hesitate to contact me. diff --git a/lib/index.js b/lib/index.js index 54bf82c..579b2eb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -264,7 +264,7 @@ function getDynamicData(srv, iface, callback) { }); } - mem().then(res => { + mem.mem().then(res => { data.mem = res; functionProcessed(); });