summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-07 22:48:48 +0200
committerPaul Buetow <paul@buetow.org>2025-03-07 22:48:48 +0200
commit786a23174a450a8a92907404a1beaef3231f4794 (patch)
treec130a1215762b24842cce95563cf9c0eda06bfa1 /internal
parentc78b30591644d4b7ab7b68b7ccba978e4f702bc8 (diff)
jo
Diffstat (limited to 'internal')
-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")
}