Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
182439fa
Commit
182439fa
authored
May 05, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix download progress
parent
14ab6ac3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
app/download.service.ts
app/download.service.ts
+4
-5
No files found.
app/download.service.ts
View file @
182439fa
...
...
@@ -54,12 +54,11 @@ export class DownloadStatus {
status
.
errorCode
=
o
.
errorCode
;
status
.
errorMessage
=
o
.
errorMessage
;
}
}
status
.
downloadSpeed
+=
o
.
downloadSpeed
;
status
.
totalLength
+=
o
.
totalLength
;
status
.
completedLength
+=
o
.
completedLength
;
}
}
return
status
;
}
...
...
@@ -79,7 +78,7 @@ export class DownloadStatus {
if
(
item
)
{
this
.
completedLength
=
parseInt
(
item
.
completedLength
)
||
0
;
this
.
downloadSpeed
=
parseInt
(
item
.
downloadSpeed
)
||
0
;
this
.
totalLength
=
parseInt
(
item
.
totalLength
)
||
0
;
this
.
totalLength
=
parseInt
(
item
.
totalLength
)
||
parseInt
(
item
.
files
[
0
].
length
)
||
0
;
this
.
gid
=
item
.
gid
;
this
.
status
=
item
.
status
;
this
.
errorCode
=
item
.
errorCode
;
...
...
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