This commit is contained in:
terorie 2018-12-07 01:13:00 +01:00
parent 5accf9350c
commit e6b4987f3e
No known key found for this signature in database
GPG Key ID: C268B2BBDA2ABECB

View File

@ -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"])