Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for dtoi (0.09 sec)

  1. cmd/peer-rest-server.go

    	if !ok {
    		s.writeErrorResponse(w, errAuthentication)
    		return
    	}
    
    	size, err := strconv.Atoi(sizeStr)
    	if err != nil {
    		size = 64 * humanize.MiByte
    	}
    
    	concurrent, err := strconv.Atoi(concurrentStr)
    	if err != nil {
    		concurrent = 32
    	}
    
    	duration, err := time.ParseDuration(durationStr)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. src/time/format.go

    		b[i] = utod(u - q*10)
    		u = q
    		i--
    	}
    	b[i] = utod(u)
    	return b
    }
    
    // Never printed, just needs to be non-nil for return by atoi.
    var errAtoi = errors.New("time: invalid number")
    
    // Duplicates functionality in strconv, but avoids dependency.
    func atoi[bytes []byte | string](s bytes) (x int, err error) {
    	neg := false
    	if len(s) > 0 && (s[0] == '-' || s[0] == '+') {
    		neg = s[0] == '-'
    		s = s[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	if err := store.Create(ctx, computePodKey(secondObj), secondObj, lastUpdatedObj, 0); err != nil {
    		t.Fatalf("Set failed: %v", err)
    	}
    
    	currentRV, _ := strconv.Atoi(storedObj.ResourceVersion)
    	lastUpdatedCurrentRV, _ := strconv.Atoi(lastUpdatedObj.ResourceVersion)
    
    	// TODO(jpbetz): Add exact test cases
    	tests := []struct {
    		name                 string
    		key                  string
    		ignoreNotFound       bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  4. src/cmd/internal/testdir/testdir_test.go

    		case "-t": // timeout in seconds
    			args = args[1:]
    			var err error
    			tim, err = strconv.Atoi(args[0])
    			if err != nil {
    				t.Fatalf("need number of seconds for -t timeout, got %s instead", args[0])
    			}
    			if s := os.Getenv("GO_TEST_TIMEOUT_SCALE"); s != "" {
    				timeoutScale, err := strconv.Atoi(s)
    				if err != nil {
    					t.Fatalf("failed to parse $GO_TEST_TIMEOUT_SCALE = %q as integer: %v", s, err)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  5. cmd/batch-handlers.go

    	}
    	if crypto.S3.IsEncrypted(srcObjInfo.UserDefined) {
    		opts.ServerSideEncryption = encrypt.NewSSE()
    	}
    	slc := strings.Split(srcObjInfo.ETag, "-")
    	if len(slc) == 2 {
    		partsCount, err := strconv.Atoi(slc[1])
    		if err != nil {
    			return err
    		}
    		return r.copyWithMultipartfromSource(ctx, api, core, srcObjInfo, opts, partsCount)
    	}
    	gopts := miniogo.GetObjectOptions{
    		VersionID: srcObjInfo.VersionID,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  6. pkg/apis/batch/validation/validation.go

    	}
    	x, err := strconv.Atoi(limitsStr[0])
    	if err != nil {
    		return 0, 0, fmt.Errorf("cannot convert string to integer for index: %q", limitsStr[0])
    	}
    	if x >= int(completions) {
    		return 0, 0, fmt.Errorf("too large index: %q", limitsStr[0])
    	}
    	if len(limitsStr) > 1 {
    		y, err := strconv.Atoi(limitsStr[1])
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				if event.Type == watch.Error {
    					break
    				}
    				object := event.Object
    				if co, ok := object.(runtime.CacheableObject); ok {
    					object = co.GetObject()
    				}
    				rv, err := strconv.Atoi(object.(*example.Pod).ResourceVersion)
    				if err != nil {
    					errCh <- fmt.Errorf("incorrect resource version: %v", err)
    					return
    				}
    				if prevRV != -1 && prevRV+1 != rv {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    			if n, err := strconv.Atoi(s[len("__cgodebug_str__"):]); err == nil {
    				return n
    			}
    		}
    		return -1
    	}
    	indexOfDebugStrlen := func(s string) int {
    		// Some systems use leading _ to denote non-assembly symbols.
    		if strings.HasPrefix(s, "___") {
    			s = s[1:]
    		}
    		if strings.HasPrefix(s, "__cgodebug_strlen__") {
    			if n, err := strconv.Atoi(s[len("__cgodebug_strlen__"):]); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  9. src/cmd/dist/test.go

    			goInstall(toolenv(), gorootBinGo, toolchain...)
    			goInstall(toolenv(), gorootBinGo, "cmd")
    		}
    	}
    
    	t.timeoutScale = 1
    	if s := os.Getenv("GO_TEST_TIMEOUT_SCALE"); s != "" {
    		t.timeoutScale, err = strconv.Atoi(s)
    		if err != nil {
    			fatalf("failed to parse $GO_TEST_TIMEOUT_SCALE = %q as integer: %v", s, err)
    		}
    	}
    
    	if t.runRxStr != "" {
    		if t.runRxStr[0] == '!' {
    			t.runRxWant = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  10. pkg/proxy/ipvs/proxier.go

    		ip, port, err := net.SplitHostPort(ep)
    		if err != nil {
    			proxier.logger.Error(err, "Failed to parse endpoint", "endpoint", ep)
    			continue
    		}
    		portNum, err := strconv.Atoi(port)
    		if err != nil {
    			proxier.logger.Error(err, "Failed to parse endpoint port", "port", port)
    			continue
    		}
    
    		newDest := &utilipvs.RealServer{
    			Address: netutils.ParseIPSloppy(ip),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
Back to top