mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-04-30 01:15:19 +08:00
优化计数器
This commit is contained in:
@@ -72,6 +72,6 @@ func (this *Item) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (this *Item) IsExpired() bool {
|
||||
return this.lastUpdateTime < fasttime.Now().Unix()-this.lifeSeconds-this.spanSeconds
|
||||
func (this *Item) IsExpired(currentTime int64) bool {
|
||||
return this.lastUpdateTime < currentTime-this.lifeSeconds-this.spanSeconds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user