Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
이벤트 정보 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
심승용 committed May 14, 2020
1 parent 22dc91a commit 3d37ee8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions beater/lsbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func listDir(dirName string, bt *Lsbeat, b *beat.Beat) (int64, int, int) {
Timestamp: time.Now(),
Fields: common.MapStr{
"dirName": dirName,
"filesCount": filecount,
"filesCountAccumulate": filecountAcc,
"dirSize": dirSize,
"dirSizeAccumulate": dirSizeAcc,
"subFolderCount": subfoldercount,
Expand All @@ -141,16 +143,10 @@ func listDir(dirName string, bt *Lsbeat, b *beat.Beat) (int64, int, int) {
event := beat.Event{
Timestamp: time.Now(),
Fields: common.MapStr{
"files": fileinfos,
"filesCount": filecount,
"filesCountAccumulate": filecountAcc,
"dirName": dirName,
"dirSize": dirSize,
"dirSizeAccumulate": dirSizeAcc,
"subFolderCount": subfoldercount,
"subFolderCountAccumulate": subfoldercountAcc,
"isExist": true,
"isFolder": false,
"files": fileinfos,
"dirName": dirName,
"isExist": true,
"isFolder": false,
},
}
bt.client.Publish(event)
Expand Down

0 comments on commit 3d37ee8

Please sign in to comment.