Browse Source

Set a max time limit for copyvio checks of 45 seconds.

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
70499e1b5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      toolserver/copyvios/checker.py

+ 1
- 1
toolserver/copyvios/checker.py View File

@@ -75,7 +75,7 @@ def _format_date(cache_time):

def _get_fresh_results(page, conn):
t_start = time()
result = page.copyvio_check(max_queries=10)
result = page.copyvio_check(max_queries=10, max_time=45)
result.cached = False
result.tdiff = time() - t_start
_cache_result(page, result, conn)


Loading…
Cancel
Save