mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Extract operation progress
This commit is contained in:
parent
3dce6c57b9
commit
29d0510f1a
1 changed files with 2 additions and 0 deletions
|
|
@ -145,11 +145,13 @@ begin
|
|||
// Total operation percent
|
||||
if (Size >= -100) and (Size <= -1) then
|
||||
begin
|
||||
if (TotalBytes = 0) then TotalBytes:= 100;
|
||||
DoneBytes := TotalBytes * Int64(-Size) div 100;
|
||||
end
|
||||
// Current file percent
|
||||
else if (Size >= -1100) and (Size <= -1000) then
|
||||
begin
|
||||
if (CurrentFileTotalBytes = 0) then CurrentFileTotalBytes:= 100;
|
||||
CurrentFileDoneBytes := CurrentFileTotalBytes * (Int64(-Size) - 1000) div 100;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue