fix: counter type compute func
This commit is contained in:
parent
bf2a4b9ef5
commit
2c5836f8c8
|
@ -108,7 +108,7 @@ func CounterToGauge(item *dataobj.MetricValue) error {
|
|||
return fmt.Errorf("item:%v old value:%v greater than new value:%v", item, old.Value, item.Value)
|
||||
}
|
||||
|
||||
if old.Timestamp > item.Timestamp {
|
||||
if old.Timestamp >= item.Timestamp {
|
||||
return fmt.Errorf("item:%v old timestamp:%v greater than new timestamp:%v", item, old.Timestamp, item.Timestamp)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue