Formatted filestat.go

This commit is contained in:
Michael Travis 2016-12-02 15:09:03 +00:00
parent dcd32f1aef
commit 444b6f9d59
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
}