From 65c244fad095394c3354685420db8671c9da2fb8 Mon Sep 17 00:00:00 2001 From: slerena Date: Thu, 12 Jan 2023 15:06:57 +0000 Subject: [PATCH] Improved search command for count tool --- pandora_server/util/pandora_count.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_server/util/pandora_count.sh b/pandora_server/util/pandora_count.sh index 9aec192f31..7e15e6b144 100755 --- a/pandora_server/util/pandora_count.sh +++ b/pandora_server/util/pandora_count.sh @@ -1,12 +1,12 @@ #!/bin/bash -echo "Small tool to measure data processing throughput for a Pandora FMS data server" -echo "(c) 2010-2015 Sancho Lerena, slerena@gmail.com" +echo "Small tool to measure data processing throughput for a Pandora FMS Data server" +echo "(c) 2010-2023 Pandora FMS Team" ANT=0 while [ 1 ] do - ACT=`find /var/spool/pandora/data_in | wc -l` + ACT=`find /var/spool/pandora/data_in -maxdepth 1 -type f | wc -l` if [ $ANT != 0 ] then RES=`expr $ANT - $ACT`