template: remove redundant parentheses. (#5904)

Signed-off-by: johncming <johncming@yahoo.com>
pull/5908/head
johncming 5 years ago committed by Brian Brazil
parent 5cb32d67f9
commit 099b0d7c29

@ -219,7 +219,7 @@ func NewTemplateExpander(
seconds := int64(v) % 60 seconds := int64(v) % 60
minutes := (int64(v) / 60) % 60 minutes := (int64(v) / 60) % 60
hours := (int64(v) / 60 / 60) % 24 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. // For days to minutes, we display seconds as an integer.
if days != 0 { if days != 0 {
return fmt.Sprintf("%s%dd %dh %dm %ds", sign, days, hours, minutes, seconds) return fmt.Sprintf("%s%dd %dh %dm %ds", sign, days, hours, minutes, seconds)

Loading…
Cancel
Save