mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:41:59 +01:00
Fixed calculating sphinx index size
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
4db63006eb
commit
98b614fb37
@ -51,5 +51,5 @@ echo "INDEXER INFO: resetting daily delta finished" | logger -p "$PRIORITY"
|
||||
sum=0
|
||||
while read -r a b; do
|
||||
sum=$(( sum + b ))
|
||||
done < <( find /var/piler/${INDEXDIR}/ -type f -name main\*.spd -printf "%TY%Tm%Td %s\\n" )
|
||||
done < <( find /var/piler/${INDEXDIR}/ -type f -name main\*.sp[dp] -printf "%TY%Tm%Td %s\\n" )
|
||||
printf "%d" $sum > /var/piler/stat/main_index_size
|
||||
|
Loading…
Reference in New Issue
Block a user