mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
Fix typo in comment (#5061)
I think it is a typo in comment of Alert.ResolvedAt . Signed-off-by: MIBc <lvjiawei@cmss.chinamobile.com>
This commit is contained in:
parent
7632e976c0
commit
b50ea4834f
|
@ -93,7 +93,7 @@ func (a *Alert) Resolved() bool {
|
||||||
return a.ResolvedAt(time.Now())
|
return a.ResolvedAt(time.Now())
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResolvedAt returns true off the activity interval ended before
|
// ResolvedAt returns true iff the activity interval ended before
|
||||||
// the given timestamp.
|
// the given timestamp.
|
||||||
func (a *Alert) ResolvedAt(ts time.Time) bool {
|
func (a *Alert) ResolvedAt(ts time.Time) bool {
|
||||||
if a.EndsAt.IsZero() {
|
if a.EndsAt.IsZero() {
|
||||||
|
|
Loading…
Reference in a new issue