Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
LibQApt
Commits
3c2ba494
Commit
3c2ba494
authored
Aug 10, 2011
by
Jonathan Thomas
Browse files
Another shot at bug 279690
CCBUG:279690
parent
561b6d02
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/worker/workeracquire.cpp
View file @
3c2ba494
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment