瀏覽代碼

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

pull/24/head
Ben Kurtovic 12 年之前
父節點
當前提交
70499e1b5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      toolserver/copyvios/checker.py

+ 1
- 1
toolserver/copyvios/checker.py 查看文件

@@ -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…
取消
儲存