diff --git a/README.md b/README.md index e786b78..eaabb3f 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,8 @@ I am happy to discuss any comments and suggestions. Please feel free to contact | Version | Date | Comment | | -------------- | -------------- | -------- | -| 2.0.2 | 2016-02-22 | added CoreOS identification, optimized cpuCurrentspeed | +| 2.0.3 | 2016-02-22 | optimized cpuCurrentspeed | +| 2.0.2 | 2016-02-22 | added CoreOS identification | | 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() | diff --git a/lib/index.js b/lib/index.js index dc75dcf..1c88eeb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -67,7 +67,8 @@ // -------------------------------- // // version date comment -// 2.0.2 2016-02-22 added CoreOS identification, optimized cpuCurrentspeed +// 2.0.2 2016-02-22 optimized cpuCurrentspeed +// 2.0.2 2016-02-22 added CoreOS identification // 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() @@ -466,7 +467,8 @@ function cpuCurrentspeed(callback) { } if (_linux) { result = getCpuCurrentSpeedSync(); - callback(result); + if (result == '0.00' && _cpu_speed != '0.00') result = _cpu_speed; + callback(result); } }