mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
11 lines
148 B
Go
11 lines
148 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
func fixDurationValue(d time.Duration) time.Duration {
|
|
if d >= time.Second {
|
|
return d
|
|
}
|
|
|
|
return d * time.Second
|
|
}
|