fix: counter type compute func

This commit is contained in:
710leo 2020-03-29 10:59:07 +08:00
parent bf2a4b9ef5
commit 2c5836f8c8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}