FIX: Bug [0001234] Wrong estimated remaining time, if total amount of time is greather than 24 hours

This commit is contained in:
Alexander Koblov 2017-05-09 09:45:44 +00:00
commit 1ee32150da

View file

@ -748,7 +748,12 @@ begin
begin
if RemainingTime > 0 then
begin
sEstimated := FormatDateTime('HH:MM:SS', RemainingTime);
// Normal view, less than 24 hours of estimated time
if RemainingTime < 1.0 then
sEstimated := FormatDateTime('HH:MM:SS', RemainingTime)
else begin
sEstimated := IntToStr(Trunc(RemainingTime)) + '``' + FormatDateTime('HH:MM:SS', RemainingTime);
end;
sEstimated := Format(rsDlgSpeedTime, [Speed, sEstimated]);
end
else