Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Widmer (0.2 sec)

  1. cmd/benchmark-utils_test.go

    	sha256hex := ""
    
    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		// insert the object.
    		objInfo, err := obj.PutObject(context.Background(), bucket, "object"+strconv.Itoa(i),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. cmd/url_test.go

    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 2K bytes
    - Viewed (0)
  3. cmd/lock-rest-server.go

    	lkTimer := time.NewTimer(lockMaintenanceInterval)
    	// Stop the timer upon returning.
    	defer lkTimer.Stop()
    
    	for {
    		// Verifies every minute for locks held more than 2 minutes.
    		select {
    		case <-ctx.Done():
    			return
    		case <-lkTimer.C:
    			globalLockServer.expireOldLocks(lockValidityDuration)
    
    			// Reset the timer for next cycle.
    			lkTimer.Reset(lockMaintenanceInterval)
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. cmd/callhome.go

    			return false
    		case <-callhomeTimer.C:
    			if !globalCallhomeConfig.Enabled() {
    				// Stop the processing as callhome got disabled
    				return false
    			}
    
    			performCallhome(ctx)
    
    			// Reset the timer for next cycle.
    			callhomeTimer.Reset(globalCallhomeConfig.FrequencyDur())
    		}
    	}
    }
    
    func performCallhome(ctx context.Context) {
    	deadline := 10 * time.Second // Default deadline is 10secs for callhome
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.1K bytes
    - Viewed (1)
  5. internal/http/server.go

    	// Wait for opened connection to be closed up to Shutdown timeout.
    	shutdownTimeout := srv.ShutdownTimeout
    	shutdownTimer := time.NewTimer(shutdownTimeout)
    	defer shutdownTimer.Stop()
    
    	timer := time.NewTimer(nextPollInterval())
    	defer timer.Stop()
    	for {
    		select {
    		case <-shutdownTimer.C:
    			if atomic.LoadInt32(&srv.requestCount) <= 0 {
    				return nil
    			}
    
    			// Write all running goroutines.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. cmd/mrf.go

    				// let recently failed networks to reconnect
    				// making MRF wait for 1s before retrying,
    				// i.e 4 reconnect attempts.
    				time.Sleep(time.Second)
    			}
    
    			// wait on timer per heal
    			wait := healSleeper.Timer(context.Background())
    
    			scan := madmin.HealNormalScan
    			if u.scanMode != 0 {
    				scan = u.scanMode
    			}
    			if u.object == "" {
    				healBucket(u.bucket, scan)
    			} else {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. cmd/license-update.go

    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-licenseUpdateTimer.C:
    
    			if globalSubnetConfig.Registered() {
    				performLicenseUpdate(ctx, objAPI)
    			}
    
    			// Reset the timer for next cycle.
    			licenseUpdateTimer.Reset(licUpdateCycle)
    		}
    	}
    }
    
    func performLicenseUpdate(ctx context.Context, objectAPI ObjectLayer) {
    	// the subnet license renewal api renews the license only
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top