Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #47 from spacemeshos/small-fixes
Browse files Browse the repository at this point in the history
Minor ui fixes
  • Loading branch information
avive authored Aug 24, 2021
2 parents e4b158e + e8b3966 commit 25005e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions repl/account_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ const onesmh = 1000000000000
// coinAmount formats an amount in base coin units to a display string
func coinAmount(val uint64) string {
if val >= 1000000000000 {
return fmt.Sprintf("%d.%012d SMH", val/onesmh, val%onesmh)
return fmt.Sprintf("%d.%02d SMH, (%d Smidge)", val/onesmh, val%onesmh, val)
} else if val >= 10000000000 {
return fmt.Sprintf("0.%012d SMH", val%onesmh)
return fmt.Sprintf("0.%04d SMH, (%d Smidge)", val%onesmh, val)
} else {
return fmt.Sprint(val, " Smidge")
}
Expand Down
2 changes: 1 addition & 1 deletion repl/smesher_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *repl) printSmeshingStatus() {
if res.IsSmeshing {
fmt.Println("Node is currently smeshing")
} else {
fmt.Print("Node is not smeshing")
fmt.Println("Node is not smeshing. To start smeshing enter `post setup`.")
}
}

Expand Down

0 comments on commit 25005e9

Please sign in to comment.