diff options
author | Karsten Weiss <knweiss@gmail.com> | 2017-05-14 12:51:57 +0200 |
---|---|---|
committer | Karsten Weiss <knweiss@gmail.com> | 2017-05-14 12:51:57 +0200 |
commit | 732f8398104e9586dfed4837dcdfb55868fc33e4 (patch) | |
tree | 0e4c3d968614b812d169c6ffb5938116192319b9 /collector/sysctl_bsd.go | |
parent | 58f50b31f2f104e13b6a644dba61e91f9144920d (diff) | |
download | prometheus_node_collector-732f8398104e9586dfed4837dcdfb55868fc33e4.tar.bz2 prometheus_node_collector-732f8398104e9586dfed4837dcdfb55868fc33e4.tar.xz prometheus_node_collector-732f8398104e9586dfed4837dcdfb55868fc33e4.zip |
sysctl_bsd.go: golint fixes. Typo fix.
Diffstat (limited to 'collector/sysctl_bsd.go')
-rw-r--r-- | collector/sysctl_bsd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/sysctl_bsd.go b/collector/sysctl_bsd.go index 1cc5ec6..1aed553 100644 --- a/collector/sysctl_bsd.go +++ b/collector/sysctl_bsd.go | |||
@@ -94,7 +94,7 @@ func (b bsdSysctl) Value() (float64, error) { | |||
94 | if len(raw) != (C.sizeof_time_t + C.sizeof_suseconds_t) { | 94 | if len(raw) != (C.sizeof_time_t + C.sizeof_suseconds_t) { |
95 | // Shouldn't get here, unless the ABI changes... | 95 | // Shouldn't get here, unless the ABI changes... |
96 | return 0, fmt.Errorf( | 96 | return 0, fmt.Errorf( |
97 | "Length of bytes recieved from sysctl (%d) does not match expected bytes (%d).", | 97 | "length of bytes received from sysctl (%d) does not match expected bytes (%d)", |
98 | len(raw), | 98 | len(raw), |
99 | C.sizeof_time_t+C.sizeof_suseconds_t, | 99 | C.sizeof_time_t+C.sizeof_suseconds_t, |
100 | ) | 100 | ) |