From b05c7d8dab6fb2f0edcd51ea13ef956786481647 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Sun, 14 May 2017 13:29:26 +0200 Subject: [PATCH] cpu_darwin.go: Fix doc strings. --- collector/cpu_darwin.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/collector/cpu_darwin.go b/collector/cpu_darwin.go index 174e541f..205b6f34 100644 --- a/collector/cpu_darwin.go +++ b/collector/cpu_darwin.go @@ -44,7 +44,7 @@ import ( */ import "C" -// default value. from time.h +// ClocksPerSec default value. from time.h const ClocksPerSec = float64(128) type statCollector struct { @@ -55,8 +55,7 @@ func init() { Factories["cpu"] = NewCPUCollector } -// Takes a prometheus registry and returns a new Collector exposing -// CPU stats. +// NewCPUCollector returns a new Collector exposing CPU stats. func NewCPUCollector() (Collector, error) { return &statCollector{ cpu: prometheus.NewDesc(