take maximum processor Mhz (#16740)
* take maximum processor Mhz * remove break * cl: add cl for 16740 --------- Co-authored-by: Seth Hoenig <shoenig@duck.com>
This commit is contained in:
parent
89baa13b14
commit
ca80546ef7
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:improvement
|
||||||
|
client/fingerprint: detect fastest cpu core during cpu performance fallback
|
||||||
|
```
|
|
@ -63,8 +63,9 @@ func Init() error {
|
||||||
|
|
||||||
for _, infoStat := range cpuInfoStats {
|
for _, infoStat := range cpuInfoStats {
|
||||||
cpuModelName = infoStat.ModelName
|
cpuModelName = infoStat.ModelName
|
||||||
cpuPowerCoreMHz = uint64(infoStat.Mhz)
|
if uint64(infoStat.Mhz) > cpuPowerCoreMHz {
|
||||||
break
|
cpuPowerCoreMHz = uint64(infoStat.Mhz)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// compute ticks using only power core, until we add support for
|
// compute ticks using only power core, until we add support for
|
||||||
|
|
Loading…
Reference in New Issue