Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

take maximum processor Mhz #16740

Merged
merged 3 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/16740.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
client/fingerprint: detect fastest cpu core during cpu performance fallback
```
5 changes: 3 additions & 2 deletions helper/stats/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ func Init() error {

for _, infoStat := range cpuInfoStats {
cpuModelName = infoStat.ModelName
cpuPowerCoreMHz = uint64(infoStat.Mhz)
break
if uint64(infoStat.Mhz) > cpuPowerCoreMHz {
cpuPowerCoreMHz = uint64(infoStat.Mhz)
}
}

// compute ticks using only power core, until we add support for
Expand Down