- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 151 for dtoi (0.04 sec)
-
test/stress/runstress.go
time.Sleep(250 * time.Millisecond) } } func stressNet() { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { size, _ := strconv.Atoi(r.FormValue("size")) w.Write(make([]byte, size)) })) go dialStress(ts.Listener.Addr()) for { size := rand.Intn(128 << 10) res, err := http.Get(fmt.Sprintf("%s/?size=%d", ts.URL, size)) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:35 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/ftp-server.go
host, portStr, err := net.SplitHostPort(tokens[1]) if err != nil { logger.Fatal(fmt.Errorf("invalid arguments passed to --ftp=%s (%v)", arg, err), "unable to start FTP server") } port, err = strconv.Atoi(portStr) if err != nil { logger.Fatal(fmt.Errorf("invalid arguments passed to --ftp=%s (%v)", arg, err), "unable to start FTP server") } if port < 1 || port > 65535 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 4.8K bytes - Viewed (0) -
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) -
src/net/platform_test.go
out, _ := exec.Command("oslevel", "-s").Output() if len(out) >= len("7200-XX-ZZ-YYMM") { // AIX 7.2, Tech Level XX, Service Pack ZZ, date YYMM aixVer := string(out[:4]) tl, _ := strconv.Atoi(string(out[5:7])) unixEnabledOnAIX = aixVer > "7200" || (aixVer == "7200" && tl >= 2) } } } // testableNetwork reports whether network is testable on the current // platform configuration.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 4.3K bytes - Viewed (0) -
internal/config/storageclass/storage-class_test.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Aug 15 23:04:20 UTC 2023 - 4.3K bytes - Viewed (0) -
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) -
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) -
operator/pkg/util/util.go
} } else { fileList = append(fileList, path) } return fileList, nil } // ParseValue parses string into a value func ParseValue(valueStr string) any { var value any if v, err := strconv.Atoi(valueStr); err == nil { value = v } else if v, err := strconv.ParseFloat(valueStr, 64); err == nil { value = v } else if v, err := strconv.ParseBool(valueStr); err == nil { value = v } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 02 13:01:43 UTC 2023 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/util.go
if err != nil { return 0, err } if emptyListAccessor == nil { return 0, fmt.Errorf("unable to extract a list accessor from %T", emptyList) } currentResourceVersion, err := strconv.Atoi(emptyListAccessor.GetResourceVersion()) if err != nil { return 0, err } if currentResourceVersion == 0 { return 0, fmt.Errorf("the current resource version must be greater than 0") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:05:06 UTC 2024 - 4.6K bytes - Viewed (0) -
logger/sql.go
sql = newSQL.String() } else { sql = numericPlaceholder.ReplaceAllString(sql, "$$$1$$") sql = numericPlaceholderRe.ReplaceAllStringFunc(sql, func(v string) string { num := v[1 : len(v)-1] n, _ := strconv.Atoi(num) // position var start from 1 ($1, $2) n -= 1 if n >= 0 && n <= len(vars)-1 { return vars[n] } return v }) } return sql
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0)