Commit 0f93a752 by Máhonfai Bálint

Send size in update state in export and import

parent 6bbfb683
......@@ -285,7 +285,7 @@ class Disk(object):
task.update_state(
task_id=parent_id,
state=task.AsyncResult(parent_id).state,
meta={'percent': percent}
meta={'size': current_size, 'percent': percent}
)
with magic.Magic() as m:
......@@ -344,7 +344,7 @@ class Disk(object):
task.update_state(
task_id=parent_id,
state=task.AsyncResult(parent_id).state,
meta={'percent': percent[0]}
meta={'size': monitor.bytes_read, 'percent': percent[0]}
)
with open(exported_path, 'rb') as exported_disk:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment