瀏覽代碼

lib/model: Don't include deleted items in kqueue warning threshold (ref #7855) (#8365)

Simon Frei 3 年之前
父節點
當前提交
5ac122b85f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/model/folder.go

+ 1 - 1
lib/model/folder.go

@@ -1045,7 +1045,7 @@ func (f *folder) monitorWatch(ctx context.Context) {
 		case ev := <-summaryChan:
 			if data, ok := ev.Data.(FolderSummaryEventData); !ok {
 				f.evLogger.Log(events.Failure, "Unexpected type of folder-summary event in folder.monitorWatch")
-			} else if data.Summary.LocalTotalItems > kqueueItemCountThreshold {
+			} else if data.Summary.LocalTotalItems-data.Summary.LocalDeleted > kqueueItemCountThreshold {
 				f.warnedKqueue = true
 				summarySub.Unsubscribe()
 				summaryChan = nil