💄 优化循环流量展示

This commit is contained in:
naiba
2021-11-11 09:40:10 +08:00
parent 57e556eea1
commit 6b3723461b
8 changed files with 18 additions and 7 deletions

View File

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