From 17b89e274e3731d79db281d0a72cd08333fc2fbd Mon Sep 17 00:00:00 2001 From: Peter Gilbert Date: Mon, 11 Apr 2022 08:35:07 -0700 Subject: [PATCH] go/oasis-node/cmd/control: Fix runtime-stats arg --- go/oasis-node/cmd/control/runtime_stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/oasis-node/cmd/control/runtime_stats.go b/go/oasis-node/cmd/control/runtime_stats.go index 96953949d30..ec4adaf871a 100644 --- a/go/oasis-node/cmd/control/runtime_stats.go +++ b/go/oasis-node/cmd/control/runtime_stats.go @@ -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) }