We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38d32a3 commit ab3e6beCopy full SHA for ab3e6be
collector/cpu_linux.go
@@ -224,7 +224,7 @@ func (c *cpuCollector) updateInfo(ch chan<- prometheus.Metric) error {
224
cpuFreqEnabled, ok := collectorState["cpufreq"]
225
if !ok || cpuFreqEnabled == nil {
226
c.logger.Debug("cpufreq key missing or nil value in collectorState map")
227
- } else if !*cpuFreqEnabled {
+ } else if *cpuFreqEnabled {
228
for _, cpu := range info {
229
ch <- prometheus.MustNewConstMetric(c.cpuFrequencyHz,
230
prometheus.GaugeValue,
0 commit comments