mirror of https://github.com/prometheus/prometheus
fix mis-spelling in template.go
Signed-off-by: czm <zhongming.chang@daocloud.io>pull/5854/head
parent
38ccf0157e
commit
00b556e9b5
|
@ -230,7 +230,7 @@ func NewTemplateExpander(
|
||||||
if minutes != 0 {
|
if minutes != 0 {
|
||||||
return fmt.Sprintf("%s%dm %ds", sign, minutes, seconds)
|
return fmt.Sprintf("%s%dm %ds", sign, minutes, seconds)
|
||||||
}
|
}
|
||||||
// For seconds, we display 4 significant digts.
|
// For seconds, we display 4 significant digits.
|
||||||
return fmt.Sprintf("%s%.4gs", sign, v)
|
return fmt.Sprintf("%s%.4gs", sign, v)
|
||||||
}
|
}
|
||||||
prefix := ""
|
prefix := ""
|
||||||
|
|
Loading…
Reference in New Issue