mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-13 10:51:03 +00:00
profiling
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@112 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
b5bd97ca4c
commit
3219b74468
3 changed files with 5 additions and 6 deletions
2
Makefile
2
Makefile
|
|
@ -58,7 +58,7 @@ test:
|
|||
rm -f test/*.result
|
||||
@for i in test/*.html; do \
|
||||
echo "Testing $$i. Results are in $$i.result"; \
|
||||
./$(PACKAGE) -r1 -o text -t0 -N"news.rz.uni-sb.de" -v -a $$i > $$i.result 2>&1; \
|
||||
./$(PACKAGE) -r1 -o text -N"news.rz.uni-sb.de" -v -a $$i > $$i.result 2>&1; \
|
||||
done
|
||||
|
||||
po:
|
||||
|
|
|
|||
3
debian/changelog
vendored
3
debian/changelog
vendored
|
|
@ -20,8 +20,7 @@ linkchecker (1.2.3) unstable; urgency=low
|
|||
* Only catch some exceptions in main check loop so the KeyboardInterrupt
|
||||
exception propagates through
|
||||
* Disable threading on non-POSIX systems
|
||||
* Renice the main thread loop by sleep()ing 1/3 of a second in each
|
||||
loop
|
||||
* Renice the main thread loop by sleep()ing some time
|
||||
* New function config.reset()
|
||||
|
||||
-- Bastian Kleineidam <calvin@users.sourceforge.net> Mon, 12 Jun 2000 14:50:44 +0200
|
||||
|
|
|
|||
|
|
@ -290,10 +290,10 @@ class Configuration(UserDict.UserDict):
|
|||
timeout = 0
|
||||
except nntplib.error_perm:
|
||||
value = sys.exc_info()[1]
|
||||
self.debug("NNTP: "+value+"\n")
|
||||
debug("NNTP: "+value+"\n")
|
||||
if re.compile("^505").search(str(value)):
|
||||
import whrandom
|
||||
time.sleep(whrandom.randint(30,60))
|
||||
time.sleep(whrandom.randint(10,20))
|
||||
else:
|
||||
raise
|
||||
|
||||
|
|
@ -301,7 +301,7 @@ class Configuration(UserDict.UserDict):
|
|||
return not self.urls.empty()
|
||||
|
||||
def finished_Threads(self):
|
||||
time.sleep(0.3)
|
||||
time.sleep(0.1)
|
||||
self.threader.reduceThreads()
|
||||
return not self.hasMoreUrls() and self.threader.finished()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue