Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 634 for float64 (0.25 sec)

  1. cmd/benchmark-utils_test.go

    	b.ReportAllocs()
    	// the actual benchmark for PutObjectPart starts here. Reset the benchmark timer.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		// insert the object.
    		totalPartsNR := int(math.Ceil(float64(objSize) / float64(partSize)))
    		for j := 0; j < totalPartsNR; j++ {
    			if j < totalPartsNR-1 {
    				textPartData = textData[j*partSize : (j+1)*partSize-1]
    			} else {
    				textPartData = textData[j*partSize:]
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. cmd/callhome.go

    				// callhome was disabled or context was canceled
    				return
    			}
    
    			// callhome running on a different node.
    			// sleep for some time and try again.
    			duration := time.Duration(r.Float64() * float64(globalCallhomeConfig.FrequencyDur()))
    			if duration < time.Second {
    				// Make sure to sleep at least a second to avoid high CPU ticks.
    				duration = time.Second
    			}
    			time.Sleep(duration)
    		}
    	}()
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.1K bytes
    - Viewed (1)
  3. internal/bucket/bandwidth/monitor.go

    				return true
    			}
    		}
    		return false
    	}
    }
    
    // Details for the measured bandwidth
    type Details struct {
    	LimitInBytesPerSecond            int64   `json:"limitInBits"`
    	CurrentBandwidthInBytesPerSecond float64 `json:"currentBandwidth"`
    }
    
    // BucketBandwidthReport captures the details for all buckets.
    type BucketBandwidthReport struct {
    	BucketStats map[BucketOptions]Details `json:"bucketStats,omitempty"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. internal/s3select/parquet/reader.go

    				duration := time.Duration(val) * time.Microsecond
    				value = sql.FormatSQLTimestamp(time.Unix(0, 0).Add(duration))
    			}
    		}
    	case float32:
    		value = float64(val)
    	default:
    		value = v
    	}
    	return value, nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  5. cmd/speedtest.go

    				}
    				sendResult()
    				break
    			}
    
    			// We break if we did not see 2.5% growth rate in total GET
    			// requests, we have reached our peak at this point.
    			doBreak := float64(totalGet-throughputHighestGet)/float64(totalGet) < 0.025
    
    			throughputHighestGet = totalGet
    			throughputHighestResults = results
    			throughputHighestPut = totalPut
    
    			if doBreak {
    				sendResult()
    				break
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. cmd/warm-backend-azure.go

    			return 0
    		}
    		// set the new token value
    		tc.SetToken(spt.Token().AccessToken)
    
    		// get the next token before the current one expires
    		nextRenewal := float64(time.Until(spt.Token().Expires())) * 0.8
    		if nextRenewal <= 0 {
    			nextRenewal = float64(time.Second)
    		}
    
    		return time.Duration(nextRenewal)
    	})
    
    	return tc, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 05 16:44:08 GMT 2024
    - 7.8K bytes
    - Viewed (1)
  7. api/go1.10.txt

    pkg flag, method (*FlagSet) Output() io.Writer
    pkg html/template, type Srcset string
    pkg math, func Erfcinv(float64) float64
    pkg math, func Erfinv(float64) float64
    pkg math, func Round(float64) float64
    pkg math, func RoundToEven(float64) float64
    pkg math/big, const MaxBase = 62
    pkg math/big, method (*Float) Sqrt(*Float) *Float
    pkg math/big, method (*Int) CmpAbs(*Int) int
    pkg math/rand, func Shuffle(int, func(int, int))
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 06 05:00:01 GMT 2018
    - 30.1K bytes
    - Viewed (0)
  8. cni/pkg/repair/repair_test.go

    	}
    	return
    }
    
    func TestLabelPods(t *testing.T) {
    	tests := []struct {
    		name       string
    		client     kube.Client
    		config     config.RepairConfig
    		wantLabels map[string]string
    		wantCount  float64
    		wantTags   map[string]string
    	}{
    		{
    			name:   "No broken pods",
    			client: fakeClient(workingPod, workingPodDiedPreviously),
    			config: config.RepairConfig{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  9. cmd/tier_test.go

    	for i := 0; i < expSuccess; i++ {
    		globalTierMetrics.logSuccess(tier)
    	}
    	for i := 0; i < expFailure; i++ {
    		globalTierMetrics.logFailure(tier)
    	}
    	metrics := globalTierMetrics.Report()
    	var succ, fail float64
    	for _, metric := range metrics {
    		switch metric.Description.Name {
    		case tierRequestsSuccess:
    			succ += metric.Value
    		case tierRequestsFailure:
    			fail += metric.Value
    		}
    	}
    	if int(succ) != expSuccess {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 21 04:13:40 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. cmd/erasure.go

    	// This goroutine owns the cache.
    	var saverWg sync.WaitGroup
    	saverWg.Add(1)
    	go func() {
    		// Add jitter to the update time so multiple sets don't sync up.
    		updateTime := 30*time.Second + time.Duration(float64(10*time.Second)*rand.Float64())
    		t := time.NewTicker(updateTime)
    		defer t.Stop()
    		defer saverWg.Done()
    		var lastSave time.Time
    
    		for {
    			select {
    			case <-t.C:
    				if cache.Info.LastUpdate.Equal(lastSave) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
Back to top