Dont count dirs in transfer stats
This commit is contained in:
parent
e9f344c53f
commit
1877a02378
@ -275,6 +275,7 @@ class ProgressTracker:
|
||||
self.transfered_stats_amt = sum(t.amt for t in self.transfers)
|
||||
|
||||
def on_file_progress(self, af: File, delta: int) -> None:
|
||||
if delta > 0:
|
||||
self.total_reported_progress += delta
|
||||
|
||||
def on_file_done(self, af: File) -> None:
|
||||
@ -388,6 +389,7 @@ class SendManager:
|
||||
file.remote_final_path = ftc.name
|
||||
file.state = FileState.acknowledged
|
||||
if ftc.status == 'OK':
|
||||
if ftc.size > 0:
|
||||
change = ftc.size - file.reported_progress
|
||||
file.reported_progress = ftc.size
|
||||
self.progress.on_file_progress(file, change)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user