Simplify system.DiskUsage() (#2630)
This commit is contained in:
committed by
Daniel Nelson
parent
70b3e763e7
commit
eb7ef5392e
@@ -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()}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user