mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-15 21:00:27 +00:00
Write logs to oom report
This commit is contained in:
@@ -117,9 +117,7 @@ func (s *Service) writeOOMDraft(memoryUsage uint64) {
|
||||
if time.Duration(now-lastDraft) < oomDraftMinInterval {
|
||||
return
|
||||
}
|
||||
if !s.lastDraftTime.CompareAndSwap(lastDraft, now) {
|
||||
return
|
||||
}
|
||||
s.lastDraftTime.Store(now)
|
||||
reporter := service.FromContext[OOMReporter](s.ctx)
|
||||
if reporter == nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user