MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Less

Method Less

pkg/queue/scheduler.go:106–108  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

104}
105
106func (h taskHeap) Less(i, j int) bool {
107 return h[i].ResumeTime() < h[j].ResumeTime()
108}
109
110func (h taskHeap) Swap(i, j int) {
111 h[i], h[j] = h[j], h[i]

Callers

nothing calls this directly

Calls 1

ResumeTimeMethod · 0.65

Tested by

no test coverage detected