mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-11 05:00:05 +00:00
cmd/faucet: fix period to days conversion
This commit is contained in:
parent
8a28408616
commit
464f30d301
@ -108,11 +108,12 @@ 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 == 1 {
|
||||
periods[i] = strings.TrimSuffix(periods[i], "s")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user