From: Rishabh Choudhary (rishacho) Date: Tue, 20 May 2025 07:42:15 +0000 (+0000) Subject: Pull request #4745: main: remove snort cpu command output from log X-Git-Tag: 3.8.1.0~6 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8f031d63a56d238a9fa561fb3beaa7d081e7006c;p=thirdparty%2Fsnort3.git Pull request #4745: main: remove snort cpu command output from log Merge in SNORT/snort3 from ~RISHACHO/snort3:snort_cpu_fix to master Squashed commit of the following: commit cf8bac4f2becbda0fcc84205d868758e59665f2f Author: Rishabh Choudhary Date: Tue May 13 23:40:36 2025 +0530 main: remove snort cpu command output from log --- diff --git a/src/main/analyzer_command.cc b/src/main/analyzer_command.cc index 632e3cd26..4e8c7acf5 100644 --- a/src/main/analyzer_command.cc +++ b/src/main/analyzer_command.cc @@ -309,7 +309,7 @@ ACShowSnortCPU::~ACShowSnortCPU() for (const auto& cu : cpu_usage) { - log_message("%-3d \t%-6d \t%.1f%% \t%.1f%% \t%.1f%%\n", + LogRespond(ctrlcon, "%-3d \t%-6d \t%.1f%% \t%.1f%% \t%.1f%%\n", instance, ThreadConfig::get_instance_tid(instance), cu.cpu_usage_30s, cu.cpu_usage_120s, cu.cpu_usage_300s); @@ -320,7 +320,7 @@ ACShowSnortCPU::~ACShowSnortCPU() } if (instance) - log_message("\nSummary \t%.1f%% \t%.1f%% \t%.1f%%\n", + LogRespond(ctrlcon, "\nSummary \t%.1f%% \t%.1f%% \t%.1f%%\n", cpu_usage_30s/instance, cpu_usage_120s/instance, cpu_usage_300s/instance); }