Przeglądaj źródła

less history to improve listing speed

Serghey Rodin 13 lat temu
rodzic
commit
c9dca4e2cf
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      func/main.sh

+ 1 - 1
func/main.sh

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