run with low prio per default

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2401 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-03-10 23:50:17 +00:00
parent 04e05a4bf3
commit 4679a45eb1

View file

@ -309,10 +309,10 @@ group.add_option("-V", "--version", action="store_true", dest="version",
help=_(
"""Print version and exit."""))
group.add_option("--low-priority", action="store_true", dest="lowprio",
group.add_option("--priority", action="store_true", dest="priority",
help=_(
"""Run with low thread scheduling priority. Useful when checking large
sites to not interfere with running progams."""))
"""Run with normal thread scheduling priority. Per default Linkchecker
runs with low thread priority to be suitable as a background job."""))
optparser.add_option_group(group)
@ -489,7 +489,7 @@ except linkcheck.LinkCheckerError, msg:
# apply commandline options and arguments
constructauth = False
do_profile = False
if options.lowprio:
if not options.priority:
import linkcheck.threader
linkcheck.threader.set_thread_priority(linkcheck.threader.PRIO_LOW)
if options.anchors is not None: