MCPcopy Index your code
hub / github.com/syncthing/syncthing / newDeviceActivity

Function newDeviceActivity

lib/model/deviceactivity.go:23–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func newDeviceActivity() *deviceActivity {
24 return &deviceActivity{
25 act: make(map[protocol.DeviceID]int),
26 }
27}
28
29// Returns the index of the least busy device, or -1 if all are too busy.
30func (m *deviceActivity) leastBusy(availability []Availability) int {

Callers 2

TestDeviceActivityFunction · 0.85
folder_sendrecv.goFile · 0.85

Calls

no outgoing calls

Tested by 1

TestDeviceActivityFunction · 0.68