[Lunar-commits] <lunar> [FIX] #419: Prevent tail from being a potential CPU hogger, sleep 0.1 second

Stefan Wold ratler at lunar-linux.org
Sat Aug 28 11:09:32 CEST 2010


commit 53759206432fedf26526e292577d06a808a31ed9
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Sat Aug 28 11:09:32 2010 +0200

    [FIX] #419: Prevent tail from being a potential CPU hogger, sleep 0.1 second
---
 var/lib/lunar/functions/download.lunar |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/var/lib/lunar/functions/download.lunar b/var/lib/lunar/functions/download.lunar
index ba16417..893f77d 100644
--- a/var/lib/lunar/functions/download.lunar
+++ b/var/lib/lunar/functions/download.lunar
@@ -210,7 +210,7 @@ show_downloading()
 			cat $DOWNLOAD_LOG
 			rm -f $DOWNLOAD_LOG
 		elif [ -f "$DOWNLOAD_LOG" ]; then
-			tail -s 0.0 -n 200 --follow=name --pid=$DOWNLOAD_PID $DOWNLOAD_LOG
+			tail -s 0.1 -n 200 --follow=name --pid=$DOWNLOAD_PID $DOWNLOAD_LOG
 			sleep 1
 			rm -f $DOWNLOAD_LOG
 		fi


More information about the Lunar-commits mailing list