diff --git a/README.md b/README.md index a8ab0d5..7139395 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ si.cpu() - Version 3.1.0: added [Docker][docker-url] support. Now you can scan your docker containers and get their stats - Version 3.0.0: added DisksIO - overall diskIO and IOPS values for all mounted volumes +I also created a little CLI-Tool called [mmon][mmon-github-url] (micro-monitor), also available via [github][mmon-github-url] and [npm][mmon-npm-url] + Here all changes more detailed: ### Major (breaking) Changes - Version 3 @@ -363,7 +365,8 @@ I am happy to discuss any comments and suggestions. Please feel free to contact | Version | Date | Comment | | -------------- | -------------- | -------- | -| 3.2.0 | 2016-08-20 | added battery information | +| 3.2.1 | 2016-08-19 | updated docs, improvement system | +| 3.2.0 | 2016-08-19 | added battery information | | 3.1.1 | 2016-08-18 | improved system and os detection (vm, ...), bugfix disksIO | | 3.1.0 | 2016-08-18 | added Docker stats | | 3.0.1 | 2016-08-17 | Bug-Fix disksIO, users, updated docs | @@ -460,3 +463,6 @@ All other trademarks are the property of their respective owners. [issues-img]: https://img.shields.io/github/issues/sebhildebrandt/systeminformation.svg?style=flat-square [issues-url]: https://github.com/sebhildebrandt/systeminformation/issues + +[mmon-npm-url]: https://npmjs.org/package/mmon +[mmon-github-url]: https://github.com/sebhildebrandt/mmon diff --git a/lib/index.js b/lib/index.js index bbb9f0f..1949e86 100644 --- a/lib/index.js +++ b/lib/index.js @@ -80,6 +80,7 @@ // -------------------------------- // // version date comment +// 3.2.1 2016-08-20 updated docs, improvement system // 3.2.0 2016-08-19 added battery info // 3.1.1 2016-08-18 improved system and os detection (vm, ...), bugfix disksIO // 3.1.0 2016-08-18 added docker stats @@ -165,9 +166,9 @@ function system(callback) { var lines = stdout.toString().split('\n'); lines.forEach(function (line) { if (line.indexOf(':') != -1) { - if (line.toLowerCase().indexOf('manufacturer') != -1) result.manufacturer = line.split(':')[1].trim(); + if (line.toLowerCase().indexOf('manufacturer') != -1) result.manufacturer = result.manufacturer || line.split(':')[1].trim(); if (line.toLowerCase().indexOf('product name') != -1) result.model = line.split(':')[1].trim(); - if (line.toLowerCase().indexOf('version') != -1) result.version = line.split(':')[1].trim(); + if (line.toLowerCase().indexOf('version') != -1) result.version = result.version || line.split(':')[1].trim(); if (line.toLowerCase().indexOf('serial number') != -1) result.serial = line.split(':')[1].trim(); if (line.toLowerCase().indexOf('uuid') != -1) result.uuid = line.split(':')[1].trim(); } diff --git a/package.json b/package.json index 7e0ee7f..ca2ede9 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "processes", "users", "internet", + "battery", "docker" ], "repository": {