Allow 64bit integers in kernel_vmstat

This commit is contained in:
Daniel Nelson
2017-09-25 14:51:13 -07:00
committed by Daniel Nelson
parent ffb04761d2
commit 3398c43c75
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ func (k *KernelVmstat) Gather(acc telegraf.Accumulator) error {
// We only want the even number index as that contain the stat name.
if i%2 == 0 {
// Convert the stat value into an integer.
m, err := strconv.Atoi(string(dataFields[i+1]))
m, err := strconv.ParseInt(string(dataFields[i+1]), 10, 64)
if err != nil {
return err
}