Commit 3c2ba494 authored by Jonathan Thomas's avatar Jonathan Thomas
Browse files

Another shot at bug 279690

CCBUG:279690
parent 561b6d02
......@@ -166,10 +166,9 @@ bool WorkerAcquire::Pulse(pkgAcquire *Owner)
speed = CurrentCPS;
}
int ETA = 0;
if (CurrentCPS) {
ETA = (int)((TotalBytes - CurrentBytes) / CurrentCPS);
}
unsigned long long ETA = 0;
if(CurrentCPS > 0)
ETA = (TotalBytes - CurrentBytes) / CurrentCPS;
// if the ETA is greater than two weeks, show unknown time
if (ETA > 14*24*60*60) {
......
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 to comment