Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 297 for sum2 (0.04 sec)

  1. src/testing/helperfuncs_test.go

    		wg.Add(1)
    		go func() {
    			notHelperCallingHelper(t, "parallel")
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    }
    
    func helperSubCallingHelper(t *testing.T, msg string) {
    	t.Helper()
    	t.Run("sub2", func(t *testing.T) {
    		t.Helper()
    		t.Fatal(msg)
    	})
    }
    
    func recoverHelper(t *testing.T, msg string) {
    	t.Helper()
    	defer func() {
    		t.Helper()
    		if err := recover(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:24:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/internal/trace/gc.go

    var bandsPerSeries = 1000
    
    func newMMUSeries(util []MutatorUtil) mmuSeries {
    	// Compute cumulative sum.
    	sums := make([]totalUtil, len(util))
    	var prev MutatorUtil
    	var sum totalUtil
    	for j, u := range util {
    		sum += totalUtilOf(prev.Util, u.Time-prev.Time)
    		sums[j] = sum
    		prev = u
    	}
    
    	// Divide the utilization curve up into equal size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/log/slog/handler_test.go

    			}
    			sub1 := h.WithAttrs([]Attr{Bool("sub1", true)})
    			sub2 := h.WithAttrs([]Attr{Bool("sub2", true)})
    			var wg sync.WaitGroup
    			for i := 0; i < count; i++ {
    				sub1Record := NewRecord(time.Time{}, LevelInfo, "hello from sub1", 0)
    				sub1Record.AddAttrs(Int("i", i))
    				sub2Record := NewRecord(time.Time{}, LevelInfo, "hello from sub2", 0)
    				sub2Record.AddAttrs(Int("i", i))
    				wg.Add(1)
    				go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go

    	}
    	if lowSum-requiredSumF > epsilon {
    		return nil, 0, fmt.Errorf("lower bounds sum to %v, which is higher than the required sum of %v", lowSum, requiredSum)
    	}
    	if requiredSumF-highSum > epsilon {
    		return nil, 0, fmt.Errorf("upper bounds sum to %v, which is lower than the required sum of %v", highSum, requiredSum)
    	}
    	ans := make([]float64, len(classes))
    	if requiredSum == 0 {
    		return ans, 0, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cpumanager/state/checkpoint.go

    	object = strings.Replace(object, "CPUManagerCheckpointV1", "CPUManagerCheckpoint", 1)
    	cp.Checksum = ck
    
    	hash := fnv.New32a()
    	fmt.Fprintf(hash, "%v", object)
    	if cp.Checksum != checksum.Checksum(hash.Sum32()) {
    		return errors.ErrCorruptCheckpoint
    	}
    
    	return nil
    }
    
    // VerifyChecksum verifies that current checksum of checkpoint is valid in v2 format
    func (cp *CPUManagerCheckpointV2) VerifyChecksum() error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/HelpTaskIntegrationTest.groovy

         -
    
    BUILD SUCCESSFUL"""
        }
    
        def "listsCommonDynamicAvailableValues"() {
            createDirs("sub1", "sub2")
            when:
            run "help", "--task", "hello"
            then:
            output.contains """Detailed task information for hello
    
    Paths
         :sub1:hello
         :sub2:hello
    
    Type
         CustomTask (CustomTask)
    
    Options
         --stringValue     Configures a string value in CustomTask.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 14K bytes
    - Viewed (0)
  7. buildscripts/minio-upgrade.sh

    }
    
    verify_checksum_after_heal() {
    	local sum1
    	sum1=$(curl -s "$2" | sha256sum)
    	mc admin heal --json -r "$1" >/dev/null # test after healing
    	local sum1_heal
    	sum1_heal=$(curl -s "$2" | sha256sum)
    
    	if [ "${sum1_heal}" != "${sum1}" ]; then
    		echo "mismatch expected ${sum1_heal}, got ${sum1}"
    		exit 1
    	fi
    }
    
    verify_checksum_mc() {
    	local expected
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 05:08:11 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. test/ddd2.dir/ddd3.go

    package main
    
    import "./ddd2"
    
    func main() {
    	if x := ddd.Sum(1, 2, 3); x != 6 {
    		println("ddd.Sum 6", x)
    		panic("fail")
    	}
    	if x := ddd.Sum(); x != 0 {
    		println("ddd.Sum 0", x)
    		panic("fail")
    	}
    	if x := ddd.Sum(10); x != 10 {
    		println("ddd.Sum 10", x)
    		panic("fail")
    	}
    	if x := ddd.Sum(1, 8); x != 9 {
    		println("ddd.Sum 9", x)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 583 bytes
    - Viewed (0)
  9. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/TaskReportTaskIntegrationTest.groovy

            buildFile << multiProjectBuild()
            createDirs("sub1", "sub2")
            settingsFile << "include 'sub1', 'sub2'"
    
            when:
            succeeds TASKS_DETAILED_REPORT_TASK
    
            then:
            output.contains("""
    $helloWorldGroupHeader
    a
    sub1:a
    sub2:a
    """)
            output.contains("""
    $otherGroupHeader
    sub1:b
    sub2:b
    c
    """)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 15:00:02 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list.go

    				return
    			}
    		}
    	}
    }
    
    func addToQueueSum(sum *queueSum, req *request) {
    	sum.InitialSeatsSum += req.InitialSeats()
    	sum.MaxSeatsSum += req.MaxSeats()
    	sum.TotalWorkSum += req.totalWork()
    }
    
    func deductFromQueueSum(sum *queueSum, req *request) {
    	sum.InitialSeatsSum -= req.InitialSeats()
    	sum.MaxSeatsSum -= req.MaxSeats()
    	sum.TotalWorkSum -= req.totalWork()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:05:53 UTC 2021
    - 3.9K bytes
    - Viewed (0)
Back to top