MCPcopy
hub / github.com/uber/aresdb / isPreloadingBatch

Function isPreloadingBatch

memstore/host_memory_manager.go:617–622  ·  view source on GitHub ↗

globalPriorityQueue definition END. isPreloadingBatch will check if a given batchID falling into the preloading zone. batchID is daysSinceEpoch value.

(batchID, preloadingDays int)

Source from the content-addressed store, hash-verified

615// zone.
616// batchID is daysSinceEpoch value.
617func isPreloadingBatch(batchID, preloadingDays int) bool {
618 if int(utils.Now().Unix()/86400)-batchID < preloadingDays {
619 return true
620 }
621 return false
622}

Calls 1

NowFunction · 0.92

Tested by

no test coverage detected