Skip to content

Commit

Permalink
Convert onboardingRequest RetentionPeriod to a Duration, rather than …
Browse files Browse the repository at this point in the history
…time.Hour to a uint. Fixes influxdata#18547
  • Loading branch information
mhall119 committed Jun 18, 2020
1 parent ec8c252 commit fdbf309
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/uint(time.Hour))
rp = fmt.Sprintf("%d hrs", time.Duration(or.RetentionPeriod)/time.Hour)
}
ui.Writer.Write(promptWithColor(fmt.Sprintf(`
You have entered:
Expand Down

0 comments on commit fdbf309

Please sign in to comment.