- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 351 for dtoi (0.04 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) -
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) -
test/typeparam/settable.go
results[i].Set(v) } return results } // Two concrete types with the appropriate Set method. type SettableInt int func (p *SettableInt) Set(s string) { i, err := strconv.Atoi(s) if err != nil { panic(err) } *p = SettableInt(i) } type SettableString struct { s string } func (x *SettableString) Set(s string) { x.s = s } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:48:58 UTC 2022 - 2.7K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/testing/testing.go
volume := obj.(*v1.PersistentVolume) // Check and bump object version storedVolume, found := r.volumes[volume.Name] if found { storedVer, _ := strconv.Atoi(storedVolume.ResourceVersion) requestedVer, _ := strconv.Atoi(volume.ResourceVersion) if storedVer != requestedVer { return true, obj, ErrVersionConflict } if reflect.DeepEqual(storedVolume, volume) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 20.1K 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) -
pilot/pkg/xds/pushqueue_test.go
for configkey := range request.ConfigsUpdated { updated = append(updated, fmt.Sprintf("%d", configkey.Kind)) } sort.Slice(updated, func(i, j int) bool { l, _ := strconv.Atoi(updated[i]) r, _ := strconv.Atoi(updated[j]) return l < r }) processed = append(processed, updated...) if len(processed) == 100 { done <- struct{}{} } p.MarkDone(con) } }()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 8.8K bytes - Viewed (0)