Formatted filestat.go
This commit is contained in:
parent
dcd32f1aef
commit
444b6f9d59
|
@ -78,8 +78,8 @@ func (f *FileStat) Gather(acc telegraf.Accumulator) error {
|
|||
"file": fileName,
|
||||
}
|
||||
fields := map[string]interface{}{
|
||||
"exists": int64(1),
|
||||
"size_bytes": fileInfo.Size(),
|
||||
"exists": int64(1),
|
||||
"size_bytes": fileInfo.Size(),
|
||||
"modification_time": fileInfo.ModTime().Unix(),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue