Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 140 for hamster (0.12 sec)

  1. internal/hash/checksum.go

    // Matches returns whether given content matches c.
    func (c Checksum) Matches(content []byte, parts int) error {
    	if len(c.Encoded) == 0 {
    		return nil
    	}
    	hasher := c.Type.Hasher()
    	_, err := hasher.Write(content)
    	if err != nil {
    		return err
    	}
    	sum := hasher.Sum(nil)
    	if c.WantParts > 0 && c.WantParts != parts {
    		return ChecksumMismatch{
    			Want: fmt.Sprintf("%s-%d", c.Encoded, c.WantParts),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 08 16:18:34 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/order.go

    			// Rewrite m[k] op= r into m[k] = m[k] op r so
    			// that we can ensure that if op panics
    			// because r is zero, the panic happens before
    			// the map assignment.
    			// DeepCopy is a big hammer here, but safeExpr
    			// makes sure there is nothing too deep being copied.
    			l1 := o.safeExpr(n.X)
    			l2 := ir.DeepCopy(src.NoXPos, l1)
    			if l2.Op() == ir.OINDEXMAP {
    				l2 := l2.(*ir.IndexExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  3. src/runtime/map_faststr.go

    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map writes")
    	}
    	key := stringStructOf(&s)
    	hash := t.Hasher(noescape(unsafe.Pointer(&s)), uintptr(h.hash0))
    
    	// Set hashWriting after calling t.hasher for consistency with mapassign.
    	h.flags ^= hashWriting
    
    	if h.buckets == nil {
    		h.buckets = newobject(t.Bucket) // newarray(t.bucket, 1)
    	}
    
    again:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. pkg/controlplane/instance.go

    	// MasterEndpointReconcileTTL sets the time to live in seconds of an
    	// endpoint record recorded by each master. The endpoints are checked at an
    	// interval that is 2/3 of this value and this value defaults to 15s if
    	// unset. In very large clusters, this value may be increased to reduce the
    	// possibility that the master endpoint record expires (due to other load
    	// on the etcd server) and causes masters to drop in and out of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. cmd/kube-scheduler/app/options/options.go

    	fs.StringVar(&o.WriteConfigTo, "write-config-to", o.WriteConfigTo, "If set, write the configuration values to this file and exit.")
    	fs.StringVar(&o.Master, "master", o.Master, "The address of the Kubernetes API server (overrides any value in kubeconfig)")
    
    	o.SecureServing.AddFlags(nfs.FlagSet("secure serving"))
    	o.Authentication.AddFlags(nfs.FlagSet("authentication"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 17:06:29 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/runtime/rand.go

    	for i := range seed {
    		seed[i] = bootstrapRand()
    	}
    	bootstrapRandReseed() // erase key we just extracted
    	mp.chacha8.Init64(seed)
    	mp.cheaprand = rand()
    }
    
    // randn is like rand() % n but faster.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    //go:linkname randn
    func randn(n uint32) uint32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf.go

    	a.Value = value
    	a.Data = data
    }
    
    // Each DIE (except the root ones) has at least 1 attribute: its
    // name. getattr moves the desired one to the front so
    // frequently searched ones are found faster.
    func getattr(die *dwarf.DWDie, attr uint16) *dwarf.DWAttr {
    	if die.Attr.Atr == attr {
    		return die.Attr
    	}
    
    	a := die.Attr
    	b := a.Link
    	for b != nil {
    		if b.Atr == attr {
    			a.Link = b.Link
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/aggregator.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package app does all of the work necessary to create a Kubernetes
    // APIServer by binding together the API, master and APIServer infrastructure.
    // It can be configured and called directly or via the hyperkube framework.
    package app
    
    import (
    	"k8s.io/apimachinery/pkg/runtime/schema"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 17:44:20 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. pkg/controller/podautoscaler/horizontal.go

    	// bogus CPU usage report from heapster/kubelet (like in issue #32304).
    	scaleUpLimit := calculateScaleUpLimit(currentReplicas)
    
    	if hpaMaxReplicas > scaleUpLimit {
    		maximumAllowedReplicas = scaleUpLimit
    		possibleLimitingCondition = "ScaleUpLimit"
    		possibleLimitingReason = "the desired replica count is increasing faster than the maximum scale rate"
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  10. src/net/http/httptest/recorder.go

    	if rw.wroteHeader {
    		return
    	}
    	if len(str) > 512 {
    		str = str[:512]
    	}
    
    	m := rw.Header()
    
    	_, hasType := m["Content-Type"]
    	hasTE := m.Get("Transfer-Encoding") != ""
    	if !hasType && !hasTE {
    		if b == nil {
    			b = []byte(str)
    		}
    		m.Set("Content-Type", http.DetectContentType(b))
    	}
    
    	rw.WriteHeader(200)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top