From 99da6e0a27d30de6925cbcdde66228c75b078c15 Mon Sep 17 00:00:00 2001 From: apenzk <andreas.penzkofer@iota.org> Date: Mon, 29 Jul 2019 10:10:56 +0100 Subject: [PATCH] added total number to neighbor display --- plugins/statusscreen/ui_header_bar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/statusscreen/ui_header_bar.go b/plugins/statusscreen/ui_header_bar.go index e8bd41a2..73434c14 100644 --- a/plugins/statusscreen/ui_header_bar.go +++ b/plugins/statusscreen/ui_header_bar.go @@ -80,7 +80,7 @@ func (headerBar *UIHeaderBar) Update() { fmt.Fprintf(headerBar.InfoContainer, "[::b]Node ID: [::d]%40v ", accountability.OwnId().StringIdentifier) fmt.Fprintln(headerBar.InfoContainer) - fmt.Fprintf(headerBar.InfoContainer, "[::b]Neighbors: [::d]%40v ", strconv.Itoa(len(chosenneighbors.INSTANCE.Peers))+" chosen / "+strconv.Itoa(len(acceptedneighbors.INSTANCE.Peers))+" accepted") + fmt.Fprintf(headerBar.InfoContainer, "[::b]Neighbors: [::d]%40v ", strconv.Itoa(len(chosenneighbors.INSTANCE.Peers))+" chosen / "+strconv.Itoa(len(acceptedneighbors.INSTANCE.Peers))+" accepted / "+strconv.Itoa(len(chosenneighbors.INSTANCE.Peers)+len(acceptedneighbors.INSTANCE.Peers))+" total") fmt.Fprintln(headerBar.InfoContainer) fmt.Fprintf(headerBar.InfoContainer, "[::b]Known Peers: [::d]%40v ", strconv.Itoa(len(knownpeers.INSTANCE.Peers))+" total / "+strconv.Itoa(len(neighborhood.INSTANCE.Peers))+" neighborhood") fmt.Fprintln(headerBar.InfoContainer) -- GitLab