|
From: <di...@us...> - 2010-11-19 22:05:13
|
Revision: 703
http://safekeep.svn.sourceforge.net/safekeep/?rev=703&view=rev
Author: dimi
Date: 2010-11-19 22:05:07 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
By default, run safekeep as niced
Modified Paths:
--------------
safekeep/trunk/doc/safekeep.conf.txt
safekeep/trunk/safekeep
safekeep/trunk/safekeep.conf
Modified: safekeep/trunk/doc/safekeep.conf.txt
===================================================================
--- safekeep/trunk/doc/safekeep.conf.txt 2010-11-19 19:16:25 UTC (rev 702)
+++ safekeep/trunk/doc/safekeep.conf.txt 2010-11-19 22:05:07 UTC (rev 703)
@@ -50,7 +50,8 @@
It specifies an integer to be added to the current nice
level. Nicenesses range from -20 (most favorable scheduling)
to 19 (least favorable).
- If no nice level is specified, safekeep is not niced.
+ To disable nice, set this value to 0.
+ If no nice level is specified, safekeep is niced at +10.
nice.adjustment.server::
The nice level adjustment for safekeep, used on the server side.
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-11-19 19:16:25 UTC (rev 702)
+++ safekeep/trunk/safekeep 2010-11-19 22:05:07 UTC (rev 703)
@@ -1438,6 +1438,7 @@
if 'email.to' in props:
email = props['email.to'].split(',')
nice_def = get_int('nice.adjustment')
+ if nice_def is None: nice_def = 10
nice_srv = get_int('nice.adjustment.server') or nice_def
nice_cln = get_int('nice.adjustment.client') or nice_def
Modified: safekeep/trunk/safekeep.conf
===================================================================
--- safekeep/trunk/safekeep.conf 2010-11-19 19:16:25 UTC (rev 702)
+++ safekeep/trunk/safekeep.conf 2010-11-19 22:05:07 UTC (rev 703)
@@ -14,7 +14,8 @@
# you can control the server/client nice level via
# nice.adjustment.server and nice.adjustment.client
# or even on a per-client box in the .backup file.
-nice.adjustment = 10
+# to disable nice, set it to 0
+# nice.adjustment = 10
# A default bandwidth limit for both download/upload
# bandwidth.limit=100
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|