Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
ee25667e
Commit
ee25667e
authored
5 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[fix] tui: realign heads columns
parent
f918b2d1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!191
[fix] tui: realign heads columns
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/modules/tui/lib.rs
+1
-1
1 addition, 1 deletion
lib/modules/tui/lib.rs
lib/tools/network-documents/src/network_head_v2.rs
+3
-3
3 additions, 3 deletions
lib/tools/network-documents/src/network_head_v2.rs
with
4 additions
and
4 deletions
lib/modules/tui/lib.rs
+
1
−
1
View file @
ee25667e
This diff is collapsed.
Click to expand it.
lib/tools/network-documents/src/network_head_v2.rs
+
3
−
3
View file @
ee25667e
...
...
@@ -70,7 +70,7 @@ impl NetworkHeadMessageV2 {
if
max_len
>
85
&&
uid
.is_some
()
{
format!
(
"{node_id:8}-{pubkey:.8} {blockstamp:.16} {soft:
7
}:{ver:14} {pre:3} [{api:5}] {mer:02}:{mir:02} {uid}"
,
"{node_id:8}-{pubkey:.8} {blockstamp:.16} {soft:
9
}:{ver:14} {pre:3} [{api:5}] {mer:02}:{mir:02} {uid}"
,
node_id
=
self
.node_uuid
.to_string
(),
pubkey
=
self
.pubkey
.to_string
(),
blockstamp
=
self
.blockstamp
.to_string
(),
...
...
@@ -84,7 +84,7 @@ impl NetworkHeadMessageV2 {
)
}
else
if
max_len
>
75
{
format!
(
"{node_id:8}-{pubkey:.8} {blockstamp:.16} {soft:
7
}:{ver:14} {pre:3} [{api:5}] {mer:02}:{mir:02}"
,
"{node_id:8}-{pubkey:.8} {blockstamp:.16} {soft:
9
}:{ver:14} {pre:3} [{api:5}] {mer:02}:{mir:02}"
,
node_id
=
self
.node_uuid
.to_string
(),
pubkey
=
self
.pubkey
.to_string
(),
blockstamp
=
self
.blockstamp
.to_string
(),
...
...
@@ -97,7 +97,7 @@ impl NetworkHeadMessageV2 {
)
}
else
if
max_len
>
70
{
format!
(
"{node_id:8}-{pubkey:.8} {blockstamp:.16} {soft:
7
}:{ver:14} [{api:5}] {mer:02}:{mir:02}"
,
"{node_id:8}-{pubkey:.8} {blockstamp:.16} {soft:
9
}:{ver:14} [{api:5}] {mer:02}:{mir:02}"
,
node_id
=
self
.node_uuid
.to_string
(),
pubkey
=
self
.pubkey
.to_string
(),
blockstamp
=
self
.blockstamp
.to_string
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment