Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
473cee7a
Commit
473cee7a
authored
7 years ago
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sync percentage display
parent
682ddea2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
status-bar.component.ts
Breeze.UI/src/app/wallet/status-bar/status-bar.component.ts
+2
-2
No files found.
Breeze.UI/src/app/wallet/status-bar/status-bar.component.ts
View file @
473cee7a
...
@@ -18,7 +18,7 @@ export class StatusBarComponent implements OnInit {
...
@@ -18,7 +18,7 @@ export class StatusBarComponent implements OnInit {
private
lastBlockSyncedHeight
:
number
;
private
lastBlockSyncedHeight
:
number
;
private
chainTip
:
number
;
private
chainTip
:
number
;
private
connectedNodes
:
number
=
0
;
private
connectedNodes
:
number
=
0
;
private
percentSynced
:
number
=
100
;
private
percentSynced
:
string
;
constructor
(
private
apiService
:
ApiService
,
private
globalService
:
GlobalService
)
{
}
constructor
(
private
apiService
:
ApiService
,
private
globalService
:
GlobalService
)
{
}
...
@@ -40,7 +40,7 @@ export class StatusBarComponent implements OnInit {
...
@@ -40,7 +40,7 @@ export class StatusBarComponent implements OnInit {
this
.
lastBlockSyncedHeight
=
generalWalletInfoResponse
.
lastBlockSyncedHeight
;
this
.
lastBlockSyncedHeight
=
generalWalletInfoResponse
.
lastBlockSyncedHeight
;
this
.
chainTip
=
generalWalletInfoResponse
.
chainTip
;
this
.
chainTip
=
generalWalletInfoResponse
.
chainTip
;
this
.
connectedNodes
=
generalWalletInfoResponse
.
connectedNodes
;
this
.
connectedNodes
=
generalWalletInfoResponse
.
connectedNodes
;
this
.
percentSynced
=
(
this
.
chainTip
/
this
.
lastBlockSyncedHeight
)
*
100
this
.
percentSynced
=
(
(
this
.
lastBlockSyncedHeight
/
this
.
chainTip
)
*
100
).
toFixed
(
0
);
}
}
},
},
error
=>
{
error
=>
{
...
...
This diff is collapsed.
Click to expand it.
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