mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
parent
7a836aae8f
commit
6ef8186da4
1 changed files with 6 additions and 3 deletions
|
|
@ -82,9 +82,12 @@ begin
|
|||
// Get the number of bytes processed since the previous call
|
||||
if Size > 0 then
|
||||
begin
|
||||
TotalFiles := 100;
|
||||
DoneBytes := DoneBytes + Size;
|
||||
DoneFiles := DoneBytes * 100 div TotalBytes;
|
||||
if TotalBytes > 0 then
|
||||
begin
|
||||
TotalFiles := 100;
|
||||
DoneBytes := DoneBytes + Size;
|
||||
DoneFiles := DoneBytes * 100 div TotalBytes;
|
||||
end;
|
||||
end
|
||||
// Get progress percent value to directly set progress bar
|
||||
else if Size < 0 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue