Skip to content

Commit

Permalink
Ctl: increase host-name spacing in status output
Browse files Browse the repository at this point in the history
Allow for slightly longer hostnames
  • Loading branch information
hsanjuan committed Aug 14, 2019
1 parent 6743f92 commit 5e4c8d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/ipfs-cluster-ctl/formatters.go
Expand Up @@ -140,9 +140,9 @@ func textFormatPrintGPInfo(obj *api.GlobalPinInfo) {
for _, k := range peers {
v := obj.PeerMap[k]
if len(v.PeerName) > 0 {
fmt.Printf(" > %-15s : %s", v.PeerName, strings.ToUpper(v.Status.String()))
fmt.Printf(" > %-20s : %s", v.PeerName, strings.ToUpper(v.Status.String()))
} else {
fmt.Printf(" > %-15s : %s", k, strings.ToUpper(v.Status.String()))
fmt.Printf(" > %-20s : %s", k, strings.ToUpper(v.Status.String()))
}
if v.Error != "" {
fmt.Printf(": %s", v.Error)
Expand Down

0 comments on commit 5e4c8d9

Please sign in to comment.