optimized cpuCurrentspeed

This commit is contained in:
Sebastian Hildebrandt 2016-02-22 09:36:36 +01:00
parent 302ef39910
commit b4e5fb9126
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -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);
}
}