Fix some error messages.
This commit is contained in:
parent
93708f3dda
commit
dddb273dfc
6 changed files with 10 additions and 10 deletions
|
|
@ -98,7 +98,7 @@ func (c *filesystemCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
|||
var mntbuf *C.struct_statfs
|
||||
count := C.getmntinfo(&mntbuf, C.MNT_NOWAIT)
|
||||
if count == 0 {
|
||||
return errors.New("getmntinfo() failed!")
|
||||
return errors.New("getmntinfo() failed")
|
||||
}
|
||||
|
||||
mnt := (*[1 << 30]C.struct_statfs)(unsafe.Pointer(mntbuf))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue