From f7e15ca28295c186a52ccba01db4c6856eeea94c Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Wed, 21 Jun 2023 17:28:50 +0200 Subject: [PATCH] chore(userspace): cleanup old code. Signed-off-by: Federico Di Pierro --- userspace/falco/stats_writer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/userspace/falco/stats_writer.cpp b/userspace/falco/stats_writer.cpp index 0e7aa111..e055d347 100644 --- a/userspace/falco/stats_writer.cpp +++ b/userspace/falco/stats_writer.cpp @@ -50,7 +50,7 @@ bool stats_writer::init_ticker(uint32_t interval_msec, std::string &err) err = std::string("Could not set up signal handler for periodic timer: ") + strerror(errno); return false; } - + timer_t timerid; struct sigevent sev = {}; /* Create the timer */ @@ -69,11 +69,6 @@ bool stats_writer::init_ticker(uint32_t interval_msec, std::string &err) err = std::string("Could not set up periodic timer: ") + strerror(errno); return false; } - //if (setitimer(ITIMER_REAL, &timer, NULL) == -1) - //{ - // err = std::string("Could not set up periodic timer: ") + strerror(errno); - // return false; - //} return true; }