Round check next time format to second.

This commit is contained in:
MikoyChinese
2022-01-14 12:01:55 +08:00
parent 0cc409a788
commit b4a832f7d0
+1 -1
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)