Merge branch 'master' of github.com:didi/nightingale
This commit is contained in:
commit
fc4fa979af
|
@ -121,7 +121,7 @@ func (m *MetricValue) CheckValidity(now int64) (err error) {
|
||||||
|
|
||||||
//时间超前5分钟则报错
|
//时间超前5分钟则报错
|
||||||
if m.Timestamp-now > 300 {
|
if m.Timestamp-now > 300 {
|
||||||
err = fmt.Errorf("point timestamp:%d is ahead of now:%d")
|
err = fmt.Errorf("point timestamp:%d is ahead of now:%d", m.Timestamp, now)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue