- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 151 for dtoi (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/pathelement.go
case Value: val, err := value.FromJSON([]byte(split[1])) if err != nil { return fieldpath.PathElement{}, err } return fieldpath.PathElement{ Value: &val, }, nil case Index: i, err := strconv.Atoi(split[1]) if err != nil { return fieldpath.PathElement{}, err } return fieldpath.PathElement{ Index: &i, }, nil case Key: kv := map[string]json.RawMessage{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.3K bytes - Viewed (0) -
internal/config/cache/remote.go
r.IfNoneMatch = canonicalizeETag(header.Get(xhttp.IfNoneMatch)) r.IfRange = header.Get(xhttp.Range) ifPartNumberHeader := header.Get(xhttp.PartNumber) if ifPartNumberHeader != "" { if partNumber, err := strconv.Atoi(ifPartNumberHeader); err == nil { r.IfPartNumber = partNumber } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Nov 22 21:46:17 UTC 2023 - 3.7K bytes - Viewed (0) -
src/go/internal/gccgoimporter/importer_test.go
} vers := regexp.MustCompile(`(\d+)\.(\d+)`).FindSubmatch(verout) if len(vers) == 0 { t.Fatalf("could not find version number in %s", verout) } major, err := strconv.Atoi(string(vers[1])) if err != nil { t.Fatal(err) } minor, err := strconv.Atoi(string(vers[2])) if err != nil { t.Fatal(err) } t.Logf("gccgo version %d.%d", major, minor) tmpdir := t.TempDir()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:17:57 UTC 2022 - 7.2K bytes - Viewed (0) -
src/compress/lzw/reader_test.go
var order Order switch d[1] { case "LSB": order = LSB case "MSB": order = MSB default: t.Errorf("%s: bad order %q", tt.desc, d[1]) } litWidth, _ := strconv.Atoi(d[2]) rc := NewReader(strings.NewReader(tt.compressed), order, litWidth) defer rc.Close() b.Reset() n, err := io.Copy(&b, rc) s := b.String() if err != nil { if err != tt.err {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 16:57:58 UTC 2024 - 7.6K bytes - Viewed (0) -
pkg/volume/util/device_util_linux.go
// iSCSI hosts are always of the format "host%d" // See drivers/scsi/hosts.c in Linux hostName := hostDir.Name() if !strings.HasPrefix(hostName, "host") { continue } hostNumber, err := strconv.Atoi(strings.TrimPrefix(hostName, "host")) if err != nil { klog.Errorf("Could not get number from iSCSI host: %s", hostName) continue } // Iterate over the children of the iscsi_host device
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 9.4K bytes - Viewed (0) -
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) -
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)