Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for activeDrives (0.05 sec)

  1. cmd/metrics-v3-scanner.go

    	m.Set(scannerBucketScansFinished, float64(globalScannerMetrics.lifetime(scannerMetricScanBucketDrive)))
    	m.Set(scannerBucketScansStarted, float64(globalScannerMetrics.lifetime(scannerMetricScanBucketDrive)+uint64(globalScannerMetrics.activeDrives())))
    	m.Set(scannerDirectoriesScanned, float64(globalScannerMetrics.lifetime(scannerMetricScanFolder)))
    	m.Set(scannerObjectsScanned, float64(globalScannerMetrics.lifetime(scannerMetricScanObject)))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 19:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. cmd/data-scanner-metric.go

    		if strptr != nil {
    			res = append(res, pathJoin(prefix, name, *strptr))
    		}
    		return true
    	})
    	return res
    }
    
    // activeDrives returns the number of currently active disks.
    // (since this is concurrent it may not be 100% reliable)
    func (p *scannerMetrics) activeDrives() int {
    	var i int
    	p.currentPaths.Range(func(k, v interface{}) bool {
    		i++
    		return true
    	})
    	return i
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top