From 3219b744681be0aebaa3476f76c335eed09e5ce3 Mon Sep 17 00:00:00 2001 From: calvin Date: Mon, 12 Jun 2000 13:35:11 +0000 Subject: [PATCH] profiling git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@112 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- Makefile | 2 +- debian/changelog | 3 +-- linkcheck/Config.py | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c5c4057c..e5928ad5 100644 --- a/Makefile +++ b/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: diff --git a/debian/changelog b/debian/changelog index 9ff28dff..ad4992cd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 12 Jun 2000 14:50:44 +0200 diff --git a/linkcheck/Config.py b/linkcheck/Config.py index 4d7bcb63..531d0378 100644 --- a/linkcheck/Config.py +++ b/linkcheck/Config.py @@ -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()