knify 1.8.33__tar.gz → 1.8.35__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {knify-1.8.33 → knify-1.8.35}/PKG-INFO +1 -1
- {knify-1.8.33 → knify-1.8.35}/knify/help.py +1 -1
- {knify-1.8.33 → knify-1.8.35}/knify/threadutil.py +2 -3
- {knify-1.8.33 → knify-1.8.35}/knify.egg-info/PKG-INFO +1 -1
- {knify-1.8.33 → knify-1.8.35}/LICENSE +0 -0
- {knify-1.8.33 → knify-1.8.35}/README.md +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify/__init__.py +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify/dateutil.py +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify/listutil.py +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify/logger.py +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify/warnutil.py +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify.egg-info/SOURCES.txt +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify.egg-info/dependency_links.txt +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify.egg-info/requires.txt +0 -0
- {knify-1.8.33 → knify-1.8.35}/knify.egg-info/top_level.txt +0 -0
- {knify-1.8.33 → knify-1.8.35}/setup.cfg +0 -0
- {knify-1.8.33 → knify-1.8.35}/setup.py +0 -0
@@ -3,7 +3,6 @@
|
|
3
3
|
# Author: qicongsheng
|
4
4
|
import datetime
|
5
5
|
import threading
|
6
|
-
import time
|
7
6
|
|
8
7
|
from . import dateutil
|
9
8
|
from . import listutil
|
@@ -17,7 +16,7 @@ def print_task():
|
|
17
16
|
time_used = dateutil.now() - task_info['time_start']
|
18
17
|
time_estimate = datetime.timedelta(
|
19
18
|
seconds=time_used.total_seconds() * (task_info['total'] / task_info['processed']))
|
20
|
-
logger.info("Process: %.2f%% [%s/%s], Estimate: [%s/%s]" % (
|
19
|
+
logger.info("Process: %.2f%% [%s/%s], Estimate: [%s/%s]\r\n" % (
|
21
20
|
task_info['processed'] / task_info['total'] * 100, task_info['processed'], task_info['total'],
|
22
21
|
dateutil.date_to_str(time_used, dateutil.FORMAT_DATE_HMS),
|
23
22
|
dateutil.date_to_str(time_estimate, dateutil.FORMAT_DATE_HMS)))
|
@@ -44,7 +43,7 @@ def thread_partition_call(list_obj: list, func_, thread_num: int, partition_num:
|
|
44
43
|
for t_ in threads:
|
45
44
|
t_.join()
|
46
45
|
threads = []
|
47
|
-
logger.info("=================== end
|
46
|
+
logger.info("=================== end ===================")
|
48
47
|
print_task()
|
49
48
|
if index_ < len(list_partition) - 1:
|
50
49
|
logger.info("=================== start ===================")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|