Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bitrotStartTime (0.12 sec)

  1. cmd/data-scanner.go

    func getCycleScanMode(currentCycle, bitrotStartCycle uint64, bitrotStartTime time.Time) madmin.HealScanMode {
    	bitrotCycle := globalHealConfig.BitrotScanCycle()
    	switch bitrotCycle {
    	case -1:
    		return madmin.HealNormalScan
    	case 0:
    		return madmin.HealDeepScan
    	}
    
    	if currentCycle-bitrotStartCycle < healObjectSelectProb {
    		return madmin.HealDeepScan
    	}
    
    	if time.Since(bitrotStartTime) > bitrotCycle {
    		return madmin.HealDeepScan
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top