Round check next time format to second.

This commit is contained in:
MikoyChinese 2022-01-14 12:01:55 +08:00
parent 93417dc0e8
commit 004f4c9ef2

View File

@ -45,7 +45,7 @@ func ServeWeb(port uint) *http.Server {
return time.Duration(time.Duration(duration) * time.Second).String()
},
"sft": func(future time.Time) string {
return time.Until(future).String()
return time.Until(future).Round(time.Second).String()
},
"bf": func(b uint64) string {
return bytefmt.ByteSize(b)