Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 206 for Sum (0.13 sec)

  1. common-protos/k8s.io/api/core/v1/generated.proto

      // most preferred is the one with the greatest sum of weights, i.e.
      // for each node that meets all of the scheduling requirements (resource
      // request, requiredDuringScheduling affinity expressions, etc.),
      // compute a sum by iterating through the elements of this field and adding
      // "weight" to the sum if the node matches the corresponding matchExpressions; the
      // node(s) with the highest sum are the most preferred.
      // +optional
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 255.8K bytes
    - Viewed (0)
  2. cmd/bootstrap-peer-server.go

    	if err != nil {
    		logger.Error("Calculating checksum failed: %s", err)
    		return "00000000000000000000000000000000"
    	}
    
    	defer b.Close()
    	io.Copy(mw, b)
    	return hex.EncodeToString(mw.Sum(nil))
    }
    
    func verifyServerSystemConfig(ctx context.Context, endpointServerPools EndpointServerPools, gm *grid.Manager) error {
    	srcCfg := getServerSystemCfg()
    	clnts := newBootstrapRESTClients(endpointServerPools, gm)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. cmd/streaming-signature-v4.go

    )
    
    // getChunkSignature - get chunk signature.
    // Does not update anything in cr.
    func (cr *s3ChunkedReader) getChunkSignature() string {
    	hashedChunk := hex.EncodeToString(cr.chunkSHA256Writer.Sum(nil))
    
    	// Calculate string to sign.
    	alg := signV4ChunkedAlgorithm + "\n"
    	stringToSign := alg +
    		cr.seedDate.Format(iso8601Format) + "\n" +
    		getScope(cr.seedDate, cr.region) + "\n" +
    		cr.seedSignature + "\n" +
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. cmd/object-api-putobject_test.go

    	}
    	uploadID := res.UploadID
    
    	// Upload part1.
    	fiveMBBytes := bytes.Repeat([]byte("a"), 5*humanize.MiByte)
    	md5Writer := md5.New()
    	md5Writer.Write(fiveMBBytes)
    	etag1 := hex.EncodeToString(md5Writer.Sum(nil))
    	sha256sum := ""
    	_, err = obj.PutObjectPart(context.Background(), bucket, object, uploadID, 1, mustGetPutObjReader(t, bytes.NewReader(fiveMBBytes), int64(len(fiveMBBytes)), etag1, sha256sum), opts)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. tests/scan_test.go

    		t.Errorf("Should find expected results, got %+v", results)
    	}
    
    	var ages int
    	if err := DB.Table("users").Where("name = ? or name = ?", user2.Name, user3.Name).Select("SUM(age)").Scan(&ages).Error; err != nil || ages != 30 {
    		t.Fatalf("failed to scan ages, got error %v, ages: %v", err, ages)
    	}
    
    	var name string
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. cmd/format-erasure_test.go

    			continue
    		}
    		h := sha256.New()
    		for _, set := range format.Erasure.Sets {
    			for _, diskID := range set {
    				h.Write([]byte(diskID))
    			}
    		}
    		formatHashes[i] = hex.EncodeToString(h.Sum(nil))
    	}
    
    	formatCountMap := make(map[string]int)
    	for _, hash := range formatHashes {
    		if hash == "" {
    			continue
    		}
    		formatCountMap[hash]++
    	}
    
    	maxHash := ""
    	maxCount := 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        Collector<Cell<String, String, Integer>, ?, ImmutableTable<String, String, Integer>> collector =
            toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue, Integer::sum);
        CollectorTester.of(collector)
            .expectCollects(ImmutableTable.of())
            .expectCollects(
                ImmutableTable.of("one", "uno", 3),
                immutableCell("one", "uno", 1),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. cmd/erasure.go

    		if di.RootDisk {
    			rootDiskCount++
    		}
    	}
    
    	// Count offline disks as well to ensure consistent
    	// reportability of offline drives on local setups.
    	if len(disksInfo) == (rootDiskCount + offlineDisks.Sum()) {
    		// Success.
    		return onlineDisks, offlineDisks
    	}
    
    	// Root disk should be considered offline
    	for i := range disksInfo {
    		ep := disksInfo[i].Endpoint
    		if disksInfo[i].RootDisk {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    			Value:       float64(offlineDrives.Sum()),
    		})
    
    		metrics = append(metrics, MetricV2{
    			Description: getNodeDrivesOnlineTotalMD(),
    			Value:       float64(onlineDrives.Sum()),
    		})
    
    		metrics = append(metrics, MetricV2{
    			Description: getNodeDrivesTotalMD(),
    			Value:       float64(totalDrives.Sum()),
    		})
    
    		metrics = append(metrics, MetricV2{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  10. internal/event/target/elasticsearch.go

    			if target.client.isAtleastV7() {
    				hh, _ := highwayhash.New(magicHighwayHash256Key) // New will never return error since key is 256 bit
    				hh.Write([]byte(key))
    				hashBytes := hh.Sum(nil)
    				keyHash = base64.URLEncoding.EncodeToString(hashBytes)
    			} else {
    				keyHash = key
    			}
    		}
    
    		if eventData.EventName == event.ObjectRemovedDelete {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top