- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 112 for atom (0.08 sec)
-
operator/pkg/util/k8s.go
path := "/metrics" port := 9090 for key, val := range pod.ObjectMeta.Annotations { switch strutil.SanitizeLabelName(key) { case "prometheus_io_port": p, err := strconv.Atoi(val) if err != nil { return "", 0, fmt.Errorf("failed to parse port from annotation: %v", err) } port = p case "prometheus_io_path": path = val } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 27 16:55:16 UTC 2024 - 3.6K bytes - Viewed (0) -
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/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) -
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) -
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/net/http/triv.go
ctr.mu.Lock() defer ctr.mu.Unlock() switch req.Method { case "GET": ctr.n++ case "POST": var buf strings.Builder io.Copy(&buf, req.Body) body := buf.String() if n, err := strconv.Atoi(body); err != nil { fmt.Fprintf(w, "bad POST: %v\nbody: [%v]\n", err, body) } else { ctr.n = n fmt.Fprint(w, "counter reset\n") } } fmt.Fprintf(w, "counter = %d\n", ctr.n) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/debugging/pprofgoparser/main.go
ret[t] = append(ret[t], stackTrace) } case record: save(line) default: z := goroutinesRE.FindStringSubmatch(line) if len(z) == 3 { if z[2] != "" { a, _ := strconv.Atoi(z[2]) t = time.Duration(a) * time.Minute save(line) record = true } else { skip = true } } } } return ret, nil } const helpUsage = `
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Mar 06 11:43:16 UTC 2024 - 3.4K bytes - Viewed (0) -
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)