From 004f4c9ef2d155886f0614a27baee6b44d710927 Mon Sep 17 00:00:00 2001 From: MikoyChinese Date: Fri, 14 Jan 2022 12:01:55 +0800 Subject: [PATCH] Round check next time format to second. --- cmd/dashboard/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index d80f9e5..4c3d797 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -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)