add flag to configure scanning interval

This commit is contained in:
Dominic Breuker
2018-03-28 09:01:25 +02:00
parent 976bc2d1b3
commit d9d269446b
2 changed files with 5 additions and 3 deletions

View File

@@ -15,5 +15,5 @@ type Config struct {
}
func (c Config) String() string {
return fmt.Sprintf("Printing events: processes=%t | file-system-events=%t ||| Watching directories: %+v (recursive) | %+v (non-recursive)", c.LogPS, c.LogFS, c.RDirs, c.Dirs)
return fmt.Sprintf("Printing events: processes=%t | file-system-events=%t ||| Scannning for processes every %v and on inotify events ||| Watching directories: %+v (recursive) | %+v (non-recursive)", c.LogPS, c.LogFS, c.TriggerEvery, c.RDirs, c.Dirs)
}