Skip to content

Commit

Permalink
go/oasis-node/cmd/control: Fix runtime-stats arg
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjgilbert authored Apr 11, 2022
1 parent 0e8e8a7 commit 17b89e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/oasis-node/cmd/control/runtime_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ func doRuntimeStats(cmd *cobra.Command, args []string) { //nolint:gocyclo

if argLen == 3 {
// End height provided.
if endHeight, err = strconv.ParseUint(args[1], 10, 64); err != nil {
if endHeight, err = strconv.ParseUint(args[2], 10, 64); err != nil {
logger.Error("malformed end height",
"err", err,
"arg", args[1],
"arg", args[2],
)
os.Exit(1)
}
Expand Down

0 comments on commit 17b89e2

Please sign in to comment.