Improved search command for count tool
This commit is contained in:
parent
7502681c85
commit
65c244fad0
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue