Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for dtoi (0.04 sec)

  1. src/cmd/go/internal/load/godebug.go

    	if strings.Count(v, ".") >= 2 {
    		i := strings.Index(v, ".")
    		j := i + 1 + strings.Index(v[i+1:], ".")
    		v = v[:j]
    	}
    
    	if !strings.HasPrefix(v, "1.") {
    		return nil
    	}
    	n, err := strconv.Atoi(v[len("1."):])
    	if err != nil {
    		return nil
    	}
    
    	def := make(map[string]string)
    	for _, info := range godebugs.All {
    		if n < info.Changed {
    			def[info.Name] = info.Old
    		}
    	}
    	return def
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/internal/fuzz/pcg.go

    	state  uint64
    	inc    uint64
    }
    
    func godebugSeed() *int {
    	debug := strings.Split(os.Getenv("GODEBUG"), ",")
    	for _, f := range debug {
    		if strings.HasPrefix(f, "fuzzseed=") {
    			seed, err := strconv.Atoi(strings.TrimPrefix(f, "fuzzseed="))
    			if err != nil {
    				panic("malformed fuzzseed")
    			}
    			return &seed
    		}
    	}
    	return nil
    }
    
    // newPcgRand generates a new, seeded Rand, ready for use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testerrors/errors_test.go

    	cmd := exec.Command("go", "run", path("long_double_size.go"))
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("%#q: %v:\n%s", strings.Join(cmd.Args, " "), err, out)
    	}
    
    	i, err := strconv.Atoi(strings.TrimSpace(string(out)))
    	if err != nil {
    		t.Fatalf("long_double_size.go printed invalid size: %s", out)
    	}
    	return i
    }
    
    func TestReportsTypeErrors(t *testing.T) {
    	for _, file := range []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/syscall/dirent_test.go

    		}
    	}
    
    	slices.Sort(names)
    	t.Logf("names: %q", names)
    
    	if len(names) != 10 {
    		t.Errorf("got %d names; expected 10", len(names))
    	}
    	for i, name := range names {
    		ord, err := strconv.Atoi(name[:1])
    		if err != nil {
    			t.Fatalf("names[%d] is non-integer %q: %v", i, names[i], err)
    		}
    		if expected := strings.Repeat(name[:1], filenameMinSize+ord); name != expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/retry/retry.go

    	for _, part := range parts {
    		part = strings.TrimSpace(part)
    		if part == "" {
    			continue
    		}
    
    		// Try converting it to an integer to see if it's a valid HTTP status code.
    		i, err := strconv.Atoi(part)
    
    		if err == nil && http.StatusText(i) != "" {
    			codes = append(codes, uint32(i))
    		} else {
    			tojoin = append(tojoin, part)
    		}
    	}
    
    	return strings.Join(tojoin, ","), codes
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/hash/crc32/crc32.go

    	IEEE = 0xedb88320
    
    	// Castagnoli's polynomial, used in iSCSI.
    	// Has better error detection characteristics than IEEE.
    	// https://dx.doi.org/10.1109/26.231911
    	Castagnoli = 0x82f63b78
    
    	// Koopman's polynomial.
    	// Also has better error detection characteristics than IEEE.
    	// https://dx.doi.org/10.1109/DSN.2002.1028931
    	Koopman = 0xeb31d82e
    )
    
    // Table is a 256-word table representing the polynomial for efficient processing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. cmd/background-heal-ops.go

    		}
    	}
    }
    
    func newHealRoutine() *healRoutine {
    	workers := runtime.GOMAXPROCS(0) / 2
    
    	if envHealWorkers := env.Get("_MINIO_HEAL_WORKERS", ""); envHealWorkers != "" {
    		if numHealers, err := strconv.Atoi(envHealWorkers); err != nil {
    			bugLogIf(context.Background(), fmt.Errorf("invalid _MINIO_HEAL_WORKERS value: %w", err))
    		} else {
    			workers = numHealers
    		}
    	}
    
    	if workers == 0 {
    		workers = 4
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. pkg/kube/apimirror/probe.go

    		return json.Marshal(intstr.StrVal)
    	default:
    		return []byte{}, fmt.Errorf("impossible IntOrString.Type")
    	}
    }
    
    func (intstr *IntOrString) IntValue() int {
    	if intstr.Type == String {
    		i, _ := strconv.Atoi(intstr.StrVal)
    		return i
    	}
    	return int(intstr.IntVal)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. internal/config/browser/browser.go

    	hstsPreload := env.Get(EnvBrowserHSTSPreload, kvs.Get(browserHSTSPreload)) == config.EnableOn
    
    	hstsSeconds, err := strconv.Atoi(env.Get(EnvBrowserHSTSSeconds, kvs.GetWithDefault(browserHSTSSeconds, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    	cfg.HSTSSeconds = hstsSeconds
    	cfg.HSTSIncludeSubdomains = hstsIncludeSubdomains
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (1)
  10. cmd/listen-notification-handlers.go

    		}
    		peer.Listen(ctx, mergeCh, values)
    	}
    
    	var (
    		emptyEventTicker <-chan time.Time
    		keepAliveTicker  <-chan time.Time
    	)
    
    	if p := values.Get("ping"); p != "" {
    		pingInterval, err := strconv.Atoi(p)
    		if err != nil {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidQueryParams), r.URL)
    			return
    		}
    		if pingInterval < 1 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top