optimized cpuCurrentspeed
This commit is contained in:
parent
302ef39910
commit
b4e5fb9126
@ -229,7 +229,8 @@ I am happy to discuss any comments and suggestions. Please feel free to contact
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| 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.1 | 2016-01-07 | minor patch |
|
||||||
| 2.0.0 | 2016-01-07 | new major version 2.0 |
|
| 2.0.0 | 2016-01-07 | new major version 2.0 |
|
||||||
| 1.0.7 | 2015-11-27 | fixed: si.network_speed() |
|
| 1.0.7 | 2015-11-27 | fixed: si.network_speed() |
|
||||||
|
|||||||
@ -67,7 +67,8 @@
|
|||||||
// --------------------------------
|
// --------------------------------
|
||||||
//
|
//
|
||||||
// version date comment
|
// 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.1 2016-01-07 minor patch
|
||||||
// 2.0.0 2016-01-07 new major version 2.0
|
// 2.0.0 2016-01-07 new major version 2.0
|
||||||
// 1.0.7 2015-11-27 fixed: si.network_speed()
|
// 1.0.7 2015-11-27 fixed: si.network_speed()
|
||||||
@ -466,7 +467,8 @@ function cpuCurrentspeed(callback) {
|
|||||||
}
|
}
|
||||||
if (_linux) {
|
if (_linux) {
|
||||||
result = getCpuCurrentSpeedSync();
|
result = getCpuCurrentSpeedSync();
|
||||||
callback(result);
|
if (result == '0.00' && _cpu_speed != '0.00') result = _cpu_speed;
|
||||||
|
callback(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user