From e7a27366a05126338870768a601a40ef7fdd742a Mon Sep 17 00:00:00 2001 From: Peter Tribble Date: Fri, 24 Jan 2020 17:06:10 +0000 Subject: [PATCH] Fix Solaris build (typos in function names) (#1522) Signed-off-by: Peter Tribble Co-authored-by: Ben Kochie --- collector/cpufreq_solaris.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/cpufreq_solaris.go b/collector/cpufreq_solaris.go index 7c614ffc..6532ec01 100644 --- a/collector/cpufreq_solaris.go +++ b/collector/cpufreq_solaris.go @@ -38,7 +38,7 @@ func init() { registerCollector("cpufreq", defaultEnabled, NewCpuFreqCollector) } -func NewFreqCpuCollector(logger log.Logger) (Collector, error) { +func NewCpuFreqCollector(logger log.Logger) (Collector, error) { return &cpuFreqCollector{ cpuFreq: prometheus.NewDesc( prometheus.BuildFQName(namespace, cpuCollectorSubsystem, "frequency_hertz"), @@ -54,7 +54,7 @@ func NewFreqCpuCollector(logger log.Logger) (Collector, error) { }, nil } -func (c *cpuCollector) Update(ch chan<- prometheus.Metric) error { +func (c *cpuFreqCollector) Update(ch chan<- prometheus.Metric) error { ncpus := C.sysconf(C._SC_NPROCESSORS_ONLN) tok, err := kstat.Open()