[or-cvs] r15721: fix r1571[89], thanks arma (tor/branches/tor-0_2_0-patches/debian)

weasel at seul.org weasel at seul.org
Mon Jul 7 11:58:18 UTC 2008


Author: weasel
Date: 2008-07-07 07:58:18 -0400 (Mon, 07 Jul 2008)
New Revision: 15721

Modified:
   tor/branches/tor-0_2_0-patches/debian/tor.init
Log:
fix r1571[89], thanks arma

Modified: tor/branches/tor-0_2_0-patches/debian/tor.init
===================================================================
--- tor/branches/tor-0_2_0-patches/debian/tor.init	2008-07-07 11:57:54 UTC (rev 15720)
+++ tor/branches/tor-0_2_0-patches/debian/tor.init	2008-07-07 11:58:18 UTC (rev 15721)
@@ -28,14 +28,12 @@
 # Let's try to figure our some sane defaults:
 if [ -r /proc/sys/fs/file-max ]; then
 	system_max=`cat /proc/sys/fs/file-max`
-	#if [ "$system_max" -gt "80000" ] ; then
-		#MAX_FILEDESCRIPTORS=32768
-	#elif [ "$system_max" -gt "40000" ] ; then
-		#MAX_FILEDESCRIPTORS=16384
-	#elif [ "$system_max" -gt "10000" ] ; then
-		#MAX_FILEDESCRIPTORS=8192
-	if 0; then
-		echo fo
+	if [ "$system_max" -gt "80000" ] ; then
+		MAX_FILEDESCRIPTORS=32768
+	elif [ "$system_max" -gt "40000" ] ; then
+		MAX_FILEDESCRIPTORS=16384
+	elif [ "$system_max" -gt "10000" ] ; then
+		MAX_FILEDESCRIPTORS=8192
 	else
 		MAX_FILEDESCRIPTORS=1024
 		cat << EOF



More information about the tor-commits mailing list