- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 351 for dtoi (0.05 sec)
-
internal/config/identity/tls/config.go
) // GetExpiryDuration - return parsed expiry duration. func (l Config) GetExpiryDuration(dsecs string) (time.Duration, error) { if dsecs == "" { return defaultExpiry, nil } d, err := strconv.Atoi(dsecs) if err != nil { return 0, auth.ErrInvalidDuration } dur := time.Duration(d) * time.Second if dur < minExpiry || dur > maxExpiry { return 0, auth.ErrInvalidDuration } return dur, nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/cc_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 09 20:00:56 UTC 2024 - 14.4K bytes - Viewed (0) -
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) -
src/cmd/go/testdata/script/test_fuzz_fuzztime.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 20:09:52 UTC 2024 - 3.1K bytes - Viewed (0) -
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) -
src/runtime/testdata/testprog/numcpu_freebsd.go
return fmt.Errorf("fail to launch child '%s', error: %s, output: %s", cmdline, err, output) } // NumCPU from FreeBSDNumCPUHelper come with '\n'. output = bytes.TrimSpace(output) n, err := strconv.Atoi(string(output)) if err != nil { return fmt.Errorf("fail to parse output from child '%s', error: %s, output: %s", cmdline, err, output) } if n != len(list) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 20:09:46 UTC 2022 - 3.4K bytes - Viewed (0) -
pkg/kubelet/winstats/perfcounter_nodestats_test.go
hostname, _ := os.Hostname() assert.Equal(t, hostname, machineInfo.MachineID) // Check if it's an UUID. _, err = uuid.Parse(machineInfo.SystemUUID) assert.NoError(t, err) id, err := strconv.Atoi(machineInfo.BootID) assert.NoError(t, err) assert.NotZero(t, id) } func TestGetVersionInfo(t *testing.T) { client := perfCounterNodeStatsClient{ nodeInfo: nodeInfo{ kernelVersion: "foo",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc
absl::StrSplit(node_specification, '-'); for (const std::string& cur_index : indices) { custom_op_map[node_name].quantizable_input_indices.push_back( std::stoi(cur_index)); } break; } case CustomOpUpdateOptions::kWeightOnly: custom_op_map[node_name].is_weight_only = GetBooleanSpecs(node_specification); break;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.9K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
src/math/rand/default_test.go
// calls to top-level functions and to Seed without any duplicate values. // This will also give the race detector a change to report any problems. func doDefaultTest(t *testing.T, v string) { code, err := strconv.Atoi(v) if err != nil { t.Fatalf("internal error: unrecognized code %q", v) } goroutines := runtime.GOMAXPROCS(0) if goroutines < 4 { goroutines = 4 } ch := make(chan uint64, goroutines*3)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 07 23:39:35 UTC 2023 - 3.4K bytes - Viewed (0)