Skip to content

Commit

Permalink
fix(influx): fixup display message for onboarding with interactive an…
Browse files Browse the repository at this point in the history
…d rp flag

closes: #17862
  • Loading branch information
jsteenb2 committed May 8, 2020
1 parent 4fd30f5 commit 3c772d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influx/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func getConfirm(ui *input.UI, or *influxdb.OnboardingRequest) bool {
for {
rp := "infinite"
if or.RetentionPeriod > 0 {
rp = fmt.Sprintf("%d hrs", or.RetentionPeriod)
rp = fmt.Sprintf("%d hrs", or.RetentionPeriod/uint(time.Hour))
}
ui.Writer.Write(promptWithColor(fmt.Sprintf(`
You have entered:
Expand Down

0 comments on commit 3c772d4

Please sign in to comment.