Simplify system.DiskUsage() (#2630)

This commit is contained in:
Nikolay Denev
2017-04-18 19:42:58 +01:00
committed by Daniel Nelson
parent 018bb9d742
commit cc44150054
8 changed files with 212 additions and 28 deletions

View File

@@ -105,6 +105,6 @@ func (s *NetIOStats) Gather(acc telegraf.Accumulator) error {
func init() {
inputs.Add("net", func() telegraf.Input {
return &NetIOStats{ps: &systemPS{}}
return &NetIOStats{ps: newSystemPS()}
})
}