mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-08 22:54:51 +00:00
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:
parent
04e05a4bf3
commit
4679a45eb1
1 changed files with 4 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue