good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 464f30d3 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

cmd/faucet: fix period to days conversion

parent 8a284086
No related branches found
No related tags found
No related merge requests found
......@@ -108,10 +108,11 @@ func main() {
if period%60 == 0 {
period /= 60
periods[i] = fmt.Sprintf("%d hours", period)
}
if period%24 == 0 {
period /= 24
periods[i] = fmt.Sprintf("%d days", period)
if period%24 == 0 {
period /= 24
periods[i] = fmt.Sprintf("%d days", period)
}
}
if period == 1 {
periods[i] = strings.TrimSuffix(periods[i], "s")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment