aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_intro.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-19 18:59:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:28 +0800
commit8c78449a9ef8f2a77cc1ff94f9a0a3178af21408 (patch)
tree61902b11284d1455ca7c109a512b93048d53ad4f /cmd/puppeth/wizard_intro.go
parent005665867d50a4b38e269b6b84156db2f75469a3 (diff)
downloaddexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.tar
dexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.tar.gz
dexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.tar.bz2
dexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.tar.lz
dexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.tar.xz
dexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.tar.zst
dexon-8c78449a9ef8f2a77cc1ff94f9a0a3178af21408.zip
cmd/puppeth: reorganize stats reports to make it readable
Diffstat (limited to 'cmd/puppeth/wizard_intro.go')
-rw-r--r--cmd/puppeth/wizard_intro.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go
index 2d9a097ee..a5fea6f85 100644
--- a/cmd/puppeth/wizard_intro.go
+++ b/cmd/puppeth/wizard_intro.go
@@ -88,7 +88,7 @@ func (w *wizard) run() {
}
w.servers[server] = client
}
- w.networkStats(false)
+ w.networkStats()
}
// Basics done, loop ad infinitum about what to do
for {
@@ -110,12 +110,11 @@ func (w *wizard) run() {
} else {
fmt.Println(" 4. Manage network components")
}
- //fmt.Println(" 5. ProTips for common usecases")
choice := w.read()
switch {
case choice == "" || choice == "1":
- w.networkStats(false)
+ w.networkStats()
case choice == "2":
if w.conf.genesis == nil {
@@ -126,7 +125,7 @@ func (w *wizard) run() {
case choice == "3":
if len(w.servers) == 0 {
if w.makeServer() != "" {
- w.networkStats(false)
+ w.networkStats()
}
} else {
w.manageServers()
@@ -138,9 +137,6 @@ func (w *wizard) run() {
w.manageComponents()
}
- case choice == "5":
- w.networkStats(true)
-
default:
log.Error("That's not something I can do")
}