logger.Debugf("not found old item:%v, maybe this is the first item",item)
returnnil
}
ifold.Value>item.Value{
logger.Warningf("item:%v old value:%v greater than new value:%v",item,old.Value,item.Value)
returnnil
}
ifold.Timestamp>=item.Timestamp{
logger.Warningf("item:%v old timestamp:%v greater than new timestamp:%v",item,old.Timestamp,item.Timestamp)
returnnil
}
ifold.Timestamp<=item.Timestamp-2*item.Step{
logger.Warningf("item:%v old timestamp:%v too old <= %v = (new timestamp: %v - 2 * step: %v), maybe some point lost",item,old.Timestamp,item.Timestamp-2*item.Step,item.Timestamp,item.Step)