提交 099b0d7c 编写于 作者: J johncming 提交者: Brian Brazil

template: remove redundant parentheses. (#5904)

Signed-off-by: Njohncming <johncming@yahoo.com>
上级 5cb32d67
......@@ -219,7 +219,7 @@ func NewTemplateExpander(
seconds := int64(v) % 60
minutes := (int64(v) / 60) % 60
hours := (int64(v) / 60 / 60) % 24
days := (int64(v) / 60 / 60 / 24)
days := int64(v) / 60 / 60 / 24
// For days to minutes, we display seconds as an integer.
if days != 0 {
return fmt.Sprintf("%s%dd %dh %dm %ds", sign, days, hours, minutes, seconds)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册