- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 1,290 for inrange (0.05 seconds)
-
cmd/net.go
ifs, err := net.Interfaces() logger.FatalIf(err, "Unable to get IP addresses of this host") for _, interf := range ifs { addrs, err := interf.Addrs() if err != nil { continue } if runtime.GOOS == "windows" && interf.Flags&net.FlagUp == 0 { continue } for _, addr := range addrs { var ip net.IP switch v := addr.(type) { case *net.IPNet: ip = v.IP case *net.IPAddr:
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.6K bytes - Click Count (1) -
src/archive/tar/strconv_test.go
{-9849849, 8, true}, {math.MaxInt64, 9, true}, {0, 9, true}, {math.MinInt64, 9, true}, {math.MaxInt64, 12, true}, {0, 12, true}, {math.MinInt64, 12, true}, } for _, v := range vectors { ok := fitsInBase256(v.width, v.in) if ok != v.ok { t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok) } } } func TestParseNumeric(t *testing.T) {Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Sep 11 17:52:43 GMT 2025 - 15K bytes - Click Count (0) -
cmd/erasure-server-pool-decom_gen.go
o = msgp.AppendArrayHeader(o, uint32(len(z.QueuedBuckets))) for za0001 := range z.QueuedBuckets { o = msgp.AppendString(o, z.QueuedBuckets[za0001]) } // string "dbkts" o = append(o, 0xa5, 0x64, 0x62, 0x6b, 0x74, 0x73) o = msgp.AppendArrayHeader(o, uint32(len(z.DecommissionedBuckets))) for za0002 := range z.DecommissionedBuckets { o = msgp.AppendString(o, z.DecommissionedBuckets[za0002]) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.7K bytes - Click Count (0) -
android/guava/src/com/google/common/math/Quantiles.java
* {@code to}] for all {@code i} in the range [{@code requiredFrom}, {@code requiredTo}]. The * value returned by this method is the {@code i} in that range such that {@code allRequired[i]} * is as close as possible to the center of the range [{@code from}, {@code to}]. Choosing the * value closest to the center of the range first is the most efficient strategy because itCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 30.1K bytes - Click Count (0) -
internal/bucket/versioning/versioning_test.go
err: nil, excludedPrefixes: []string{"path/to/my/workload/_staging/", "path/to/my/workload/_temporary/"}, excludeFolders: true, }, } for i, tc := range testcases { var v *Versioning var err error v, err = ParseConfig(strings.NewReader(tc.input)) if tc.err != err { t.Fatalf("Test %d: expected %v but got %v", i+1, tc.err, err) } if err != nil {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun May 08 05:06:44 GMT 2022 - 8.8K bytes - Click Count (0) -
internal/dsync/dsync_test.go
func HammerMutex(m *DRWMutex, loops int, cdone chan bool) { for range loops { m.Lock(id, source) m.Unlock(context.Background()) } cdone <- true } // Borrowed from mutex_test.go func TestMutex(t *testing.T) { loops := 200 if testing.Short() { loops = 5 } c := make(chan bool) m := NewDRWMutex(ds, "test") for range 10 { go HammerMutex(m, loops, c) } for range 10 { <-c
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.8K bytes - Click Count (0) -
cmd/bucket-replication-stats.go
tq InQueueMetric ) for _, bucketStat := range bucketStats { totReplicaSize += bucketStat.ReplicationStats.ReplicaSize totReplicaCount += bucketStat.ReplicationStats.ReplicaCount for _, q := range bucketStat.QueueStats.Nodes { tq = tq.merge(q.QStats) } for arn, stat := range bucketStat.ReplicationStats.Stats { oldst := stats[arn] if oldst == nil {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 13.6K bytes - Click Count (0) -
cmd/os-readdir_test.go
return false } for i := range expected { // If entry in expected is not same as entry it got, the test is failed. if expected[i] != got[i] { return false } } // expected and got have same entries. return true } // teardown - cleans up test directories. func teardown(testResults []result) { for _, r := range testResults { os.RemoveAll(r.dir) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 7.5K bytes - Click Count (0) -
cmd/metrics.go
float64(dur), ) for k, v := range bgSeq.getScannedItemsMap() { ch <- prometheus.MustNewConstMetric( prometheus.NewDesc( prometheus.BuildFQName(healMetricsNamespace, "objects", "scanned"), "Objects scanned since uptime", []string{"type"}, nil), prometheus.CounterValue, float64(v), string(k), ) } for k, v := range bgSeq.getHealedItemsMap() {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 24 04:06:31 GMT 2025 - 16.7K bytes - Click Count (0) -
cmd/erasure_test.go
} decoded := encoded if !test.shouldFail { if test.reconstructParity { for j := range decoded { if decoded[j] == nil { t.Errorf("Test %d: failed to reconstruct shard %d", i, j) } } } else { for j := range decoded[:test.dataBlocks] { if decoded[j] == nil { t.Errorf("Test %d: failed to reconstruct data shard %d", i, j) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 4.8K bytes - Click Count (0)