Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for logSuccess (0.17 sec)

  1. cmd/xl-storage-disk-id-check.go

    	d := diskHealthTracker{
    		lastSuccess: time.Now().UnixNano(),
    		lastStarted: time.Now().UnixNano(),
    	}
    	d.status.Store(diskHealthOK)
    	return &d
    }
    
    // logSuccess will update the last successful operation time.
    func (d *diskHealthTracker) logSuccess() {
    	atomic.StoreInt64(&d.lastSuccess, time.Now().UnixNano())
    }
    
    func (d *diskHealthTracker) isFaulty() bool {
    	return d.status.Load() == diskHealthFaulty
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top