mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
Round check next time format to second.
This commit is contained in:
parent
93417dc0e8
commit
004f4c9ef2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user