meminfo: use bytes, fix type conversion bug.
This commit is contained in:
parent
a10ab2c102
commit
c651d7ccd9
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ func (c *meminfoCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// Convert metrics to kB ( same as Linux meminfo)
|
// Convert metrics to kB ( same as Linux meminfo)
|
||||||
c.metrics[k].Set(float64(v * size / 1024))
|
c.metrics[k].Set(float64(v) * float64(size))
|
||||||
c.metrics[k].Collect(ch)
|
c.metrics[k].Collect(ch)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue