less history to improve listing speed

This commit is contained in:
Serghey Rodin 2013-01-11 00:21:37 +02:00
commit c9dca4e2cf

View file

@ -64,7 +64,7 @@ log_history() {
touch $log
if [ '99' -lt "$(wc -l $log |cut -f 1 -d ' ')" ]; then
tail -n 99 $log > $log.moved
tail -n 49 $log > $log.moved
mv -f $log.moved $log
chmod 660 $log
fi