mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +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
|
|
}
|