Search Options

Results per page
Sort
Preferred Languages
Advance

Results 821 - 830 of 1,123 for Nil (0.01 sec)

  1. cmd/metrics-resource.go

    			updateResourceMetrics(memSubsystem, memCache, float64(stats.Cache), labels, false)
    		}
    		if hm.CPU != nil {
    			labels := map[string]string{}
    			ts := hm.CPU.TimesStat
    			if ts != nil {
    				tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    				cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 23:30:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload_test.go

    		namespace = c.namespace
    	}
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.expectedException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception, "+
    				"didn't get one, output was %q", output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception: %v", fErr)
    		}
    	}
    
    	if c.expectedOutput != "" && c.expectedOutput != output {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. internal/event/name_test.go

    		{blankName, []byte("<Name></Name>"), false},
    	}
    
    	for i, testCase := range testCases {
    		data, err := xml.Marshal(testCase.name)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. internal/http/response-recorder.go

    	headersLogged bool
    }
    
    // Hijack - hijacks the underlying connection
    func (lrw *ResponseRecorder) Hijack() (net.Conn, *bufio.ReadWriter, error) {
    	hj, ok := lrw.ResponseWriter.(http.Hijacker)
    	if !ok {
    		return nil, nil, fmt.Errorf("response writer does not support hijacking. Type is %T", lrw.ResponseWriter)
    	}
    	return hj.Hijack()
    }
    
    // TTFB of the request - this function needs to be called
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. cmd/object-api-common.go

    func newStorageAPI(endpoint Endpoint, opts storageOpts) (storage StorageAPI, err error) {
    	if endpoint.IsLocal {
    		storage, err := newXLStorage(endpoint, opts.cleanUp)
    		if err != nil {
    			return nil, err
    		}
    		return newXLStorageDiskIDCheck(storage, opts.healthCheck), nil
    	}
    
    	return newStorageRESTClient(endpoint, opts.healthCheck, globalGrid.Load())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/lifecycle_test.go

    			expectedParsingErr:    nil,
    			expectedValidationErr: nil,
    		},
    		// Lifecycle with delmarker expiration
    		{
    			inputConfig:           `<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Rule><ID>rule</ID><Status>Enabled</Status><Filter></Filter><DelMarkerExpiration><Days>5</Days></DelMarkerExpiration></Rule></LifecycleConfiguration>`,
    			expectedParsingErr:    nil,
    			expectedValidationErr: nil,
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. docs/debugging/xattr/main.go

    )
    
    var (
    	path, name string
    	value      uint64
    	set, list  bool
    )
    
    func getxattr(path, name string) (uint64, error) {
    	buf, err := xattr.LGet(path, name)
    	if err != nil {
    		return 0, err
    	}
    
    	return binary.LittleEndian.Uint64(buf[:8]), nil
    }
    
    func listxattr(path string) ([]string, error) {
    	return xattr.LList(path)
    }
    
    func setxattr(path, name string, value uint64) error {
    	data := make([]byte, 8)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 29 23:52:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. internal/disk/stat_solaris.go

    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := unix.Statvfs_t{}
    	if err = unix.Statvfs(path, &s); err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
    	info = Info{
    		Total:  uint64(s.Frsize) * (uint64(s.Blocks) - reservedBlocks),
    		Free:   uint64(s.Frsize) * uint64(s.Bavail),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/builtin/builtin.go

    // (m[key]) from the map. If m is nil or there is no such element, delete
    // is a no-op.
    func delete(m map[Type]Type1, key Type)
    
    // The len built-in function returns the length of v, according to its type:
    //
    //	Array: the number of elements in v.
    //	Pointer to array: the number of elements in *v (even if v is nil).
    //	Slice, or map: the number of elements in v; if v is nil, len(v) is zero.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. cni/pkg/iptables/iptables.go

    	iptVer, err := hostDeps.DetectIptablesVersion(false)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	log.Debugf("found iptables binary: %+v", iptVer)
    
    	configurator.iptV = iptVer
    
    	ipt6Ver, err := hostDeps.DetectIptablesVersion(true)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	log.Debugf("found iptables v6 binary: %+v", iptVer)
    
    	configurator.ipt6V = ipt6Ver
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top