mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-02-02 08:42:31 -08:00
cpu_darwin.go: Fix doc strings.
This commit is contained in:
parent
fff03c6c0c
commit
b05c7d8dab
|
@ -44,7 +44,7 @@ import (
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// default value. from time.h
|
// ClocksPerSec default value. from time.h
|
||||||
const ClocksPerSec = float64(128)
|
const ClocksPerSec = float64(128)
|
||||||
|
|
||||||
type statCollector struct {
|
type statCollector struct {
|
||||||
|
@ -55,8 +55,7 @@ func init() {
|
||||||
Factories["cpu"] = NewCPUCollector
|
Factories["cpu"] = NewCPUCollector
|
||||||
}
|
}
|
||||||
|
|
||||||
// Takes a prometheus registry and returns a new Collector exposing
|
// NewCPUCollector returns a new Collector exposing CPU stats.
|
||||||
// CPU stats.
|
|
||||||
func NewCPUCollector() (Collector, error) {
|
func NewCPUCollector() (Collector, error) {
|
||||||
return &statCollector{
|
return &statCollector{
|
||||||
cpu: prometheus.NewDesc(
|
cpu: prometheus.NewDesc(
|
||||||
|
|
Loading…
Reference in a new issue