Skip to content

Commit 464f30d

Browse files
committed
cmd/faucet: fix period to days conversion
1 parent 8a28408 commit 464f30d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/faucet/faucet.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ func main() {
108108
if period%60 == 0 {
109109
period /= 60
110110
periods[i] = fmt.Sprintf("%d hours", period)
111-
}
112-
if period%24 == 0 {
113-
period /= 24
114-
periods[i] = fmt.Sprintf("%d days", period)
111+
112+
if period%24 == 0 {
113+
period /= 24
114+
periods[i] = fmt.Sprintf("%d days", period)
115+
}
115116
}
116117
if period == 1 {
117118
periods[i] = strings.TrimSuffix(periods[i], "s")

0 commit comments

Comments
 (0)