Fix some error messages.
This commit is contained in:
parent
93708f3dda
commit
dddb273dfc
6 changed files with 10 additions and 10 deletions
|
|
@ -191,10 +191,10 @@ func NewDevstatCollector() (Collector, error) {
|
|||
func (c *devstatCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
||||
count := C._get_ndevs()
|
||||
if count == -1 {
|
||||
return errors.New("devstat_getdevs() failed!")
|
||||
return errors.New("devstat_getdevs() failed")
|
||||
}
|
||||
if count == -2 {
|
||||
return errors.New("calloc() failed!")
|
||||
return errors.New("calloc() failed")
|
||||
}
|
||||
|
||||
for i := C.int(0); i < count; i++ {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue