summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/eventfilter.go4
-rw-r--r--internal/ior.go4
2 files changed, 3 insertions, 5 deletions
diff --git a/internal/eventfilter.go b/internal/eventfilter.go
index 7edc330..bb5cc0a 100644
--- a/internal/eventfilter.go
+++ b/internal/eventfilter.go
@@ -25,8 +25,8 @@ func newEventFilter(flags flags.Flags) *eventFilter {
panic(fmt.Sprintf("Comm filter's max size is %d", types.MAX_PROGNAME_LENGTH))
}
ef.commFilterEnable = true
- copy(ef.commFilterBytes[:], []byte(flags.CommFilter))
ef.commFilter = flags.CommFilter
+ copy(ef.commFilterBytes[:], []byte(flags.CommFilter))
}
if flags.PathFilter != "" {
@@ -34,8 +34,8 @@ func newEventFilter(flags flags.Flags) *eventFilter {
panic(fmt.Sprintf("Path filter's max size is %d", types.MAX_FILENAME_LENGTH))
}
ef.pathFilterEnable = true
- copy(ef.pathFilterBytes[:], []byte(flags.PathFilter))
ef.pathFilter = flags.PathFilter
+ copy(ef.pathFilterBytes[:], []byte(flags.PathFilter))
}
return &ef
diff --git a/internal/ior.go b/internal/ior.go
index af97e55..2fbbb58 100644
--- a/internal/ior.go
+++ b/internal/ior.go
@@ -80,7 +80,7 @@ func Run(flags flags.Flags) {
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
go func() {
<-c
- fmt.Println("Shutting down...")
+ fmt.Println("Good bye...")
if flags.PprofEnable {
fmt.Println("Stoppig profiling, writing ior.cpuprofile and ior.memprofile")
pprof.StopCPUProfile()
@@ -90,6 +90,4 @@ func Run(flags flags.Flags) {
}()
newEventLoop(flags).run(ch)
-
- fmt.Println("Good bye")
}