Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 483 for pcap (0.05 sec)

  1. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    			originalSELinuxLabel:           seLinuxFileLabel,
    		}
    		// record desired size of the volume
    		if volumeSpec.PersistentVolume != nil {
    			pvCap := volumeSpec.PersistentVolume.Spec.Capacity.Storage()
    			if pvCap != nil {
    				pvCapCopy := pvCap.DeepCopy()
    				vmt.persistentVolumeSize = &pvCapCopy
    			}
    		}
    		dsw.volumesToMount[volumeName] = vmt
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. test/fixedbugs/issue41239.go

    // source code is governed by a BSD-style license that can be found in
    // the LICENSE file.
    
    package main
    
    import "fmt"
    
    func main() {
    	const N = 1024
    	var a [N]int
    	x := cap(append(a[:N-1:N], 9, 9))
    	y := cap(append(a[:N:N], 9))
    	if x != y {
    		panic(fmt.Sprintf("different capacity on append: %d vs %d", x, y))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 25 03:59:54 UTC 2020
    - 393 bytes
    - Viewed (0)
  3. test/fixedbugs/issue27356.go

    package p
    
    var a = []int{1,2,3}
    
    func _(len int) {
    	_ =  len(a) // ERROR "cannot call non-function|expected function"
    }
    
    var cap = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 469 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/capabilities/CapabilitiesConflictResolutionIntegrationTest.groovy

                    variant('runtime') {
                        capability('org', 'testA', '1.0')
                        capability('cap')
                    }
                }
                'org:testB:1.0' {
                    variant('runtime') {
                        capability('org', 'testB', '1.0')
                        capability('cap')
                    }
                }
            }
    
            buildFile << """
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 07:37:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/chan_test.go

    func testCapChan(t *testing.T) {
    
    	v := make(chan int, 25)
    
    	if want, got := 25, capChan_ssa(v); got != want {
    		t.Errorf("expected cap(chan) = %d, got %d", want, got)
    	}
    }
    
    func testCapNilChan(t *testing.T) {
    
    	var v chan int
    	if want, got := 0, capChan_ssa(v); got != want {
    		t.Errorf("expected cap(nil) = %d, got %d", want, got)
    	}
    }
    
    func TestChan(t *testing.T) {
    	testLenChan(t)
    	testLenNilChan(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  6. internal/dsync/utils.go

    import (
    	"math/rand"
    	"time"
    )
    
    func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(r *rand.Rand, attempt uint) time.Duration {
    		sleep := min
    		sleep += unit * time.Duration(attempt)
    		if sleep > cap {
    			sleep = cap
    		}
    		sleep -= time.Duration(r.Float64() * float64(sleep))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 13 15:42:21 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. test/fixedbugs/bug491.go

    		if len(a) != 1 || len(c) != 3 {
    			bug()
    			println("append call not ordered:", len(a), b, len(c))
    		}
    	}
    
    	// cap
    	{
    		x := make([]int, 1)
    		f := func() int { x = make([]int, 3); return 2 }
    		a, b, c := cap(x), f(), cap(x)
    		if a != 1 || c != 3 {
    			bug()
    			println("cap call not ordered:", a, b, c)
    		}
    	}
    
    	// complex
    	{
    		x := 1.0
    		f := func() int { x = 3; return 2 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2K bytes
    - Viewed (0)
  8. src/mime/mediatype.go

    		}
    
    		pmap := params
    		if baseName, _, ok := strings.Cut(key, "*"); ok {
    			if continuation == nil {
    				continuation = make(map[string]map[string]string)
    			}
    			var ok bool
    			if pmap, ok = continuation[baseName]; !ok {
    				continuation[baseName] = make(map[string]string)
    				pmap = continuation[baseName]
    			}
    		}
    		if v, exists := pmap[key]; exists && v != value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. test/indirect.go

    			len(a2)
    	if x != 20 {
    		println("wrong arraylen")
    		panic("fail")
    	}
    
    	x =
    		len(b0) +
    			len(b3)
    	if x != 3 {
    		println("wrong slicelen")
    		panic("fail")
    	}
    
    	x =
    		cap(b0) +
    			cap(b3)
    	if x != 3 {
    		println("wrong slicecap")
    		panic("fail")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 07:47:26 UTC 2012
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding_test.go

    			make([]int, 0),
    			6,
    		},
    		{
    			"size: 6 cap: 6 slice",
    			make([]int, 6),
    			6,
    		},
    		{
    			"size: 6 cap: 12 slice",
    			make([]int, 6, 12),
    			6,
    		},
    		{
    			"size: 4 cap: 4 slice",
    			make([]int, 4),
    			6,
    		},
    		{
    			"size: 4 cap: 12 slice",
    			make([]int, 4, 12),
    			6,
    		},
    		{
    			"size: 10 cap: 10 slice",
    			make([]int, 10),
    			6,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 25 06:44:08 UTC 2021
    - 6.7K bytes
    - Viewed (0)
Back to top