From e6b4987f3e5ac0c3e701de7972dda162f5c52006 Mon Sep 17 00:00:00 2001 From: terorie Date: Fri, 7 Dec 2018 01:13:00 +0100 Subject: [PATCH] test2 --- database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.py b/database.py index 088bde0..5d5de54 100644 --- a/database.py +++ b/database.py @@ -344,8 +344,8 @@ class Database: info["file_count"] = sum(result.file_count for result in task_results if result.server_name == crawler.name) info["time"] = sum((result.end_time - result.start_time) for result in task_results if result.server_name == crawler.name) info["task_count"] = task_count - info["time_avg"] = stats[crawler.name]["time"] / task_count - info["file_count_avg"] = stats[crawler.name]["file_count"] / task_count + info["time_avg"] = info["time"] / task_count + info["file_count_avg"] = info["file_count"] / task_count stats.append((crawler.name, info)) stats.sort(key=lambda t: t["task_count"])