mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-08 22:45:55 +02:00
Merge 8daa3701b98c02eb01c58ba85b6f62b94f432c76 into c1395ec2eded86bf7a8fcfb5555d63494ddbbece
This commit is contained in:
commit
5693f97416
@ -190,12 +190,8 @@ func getBaseFreq() float64 {
|
||||
}
|
||||
|
||||
if math.IsNaN(freq) {
|
||||
C.power_init(0)
|
||||
info := C.get_powerInfo()
|
||||
if float64(info.baseFrequency) != 0 {
|
||||
freq = float64(info.baseFrequency)
|
||||
}
|
||||
C.power_finalize()
|
||||
C.timer_init()
|
||||
freq = float64(C.timer_getCycleClock()) / 1e3
|
||||
}
|
||||
return freq * 1e3
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user