From 786a23174a450a8a92907404a1beaef3231f4794 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 7 Mar 2025 22:48:48 +0200 Subject: jo --- internal/eventfilter.go | 4 ++-- internal/ior.go | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'internal') 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") } -- cgit v1.2.3