Change duration -> internal and implement private gopsutil methods

This commit is contained in:
Cameron Sparr
2015-11-10 14:40:39 -07:00
parent a8bcc51071
commit acf9c1141a
20 changed files with 104 additions and 667 deletions

View File

@@ -5,8 +5,8 @@ import (
"strconv"
"strings"
"github.com/influxdb/telegraf/internal"
"github.com/influxdb/telegraf/plugins"
"github.com/shirou/gopsutil/common"
)
type Zfs struct {
@@ -60,7 +60,7 @@ func (z *Zfs) Gather(acc plugins.Accumulator) error {
tags := getTags(kstatPath)
for _, metric := range kstatMetrics {
lines, err := common.ReadLines(kstatPath + "/" + metric)
lines, err := internal.ReadLines(kstatPath + "/" + metric)
if err != nil {
return err
}