Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for parseLink (0.29 sec)

  1. pkg/kubelet/kuberuntime/labels.go

    	// Just set the value to 0
    	return 0, nil
    }
    
    func getUint64ValueFromLabel(labels map[string]string, label string) (uint64, error) {
    	if strValue, found := labels[label]; found {
    		intValue, err := strconv.ParseUint(strValue, 16, 64)
    		if err != nil {
    			// This really should not happen. Just set value to 0 to handle this abnormal case
    			return 0, err
    		}
    		return intValue, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. internal/config/notify/parse.go

    		}
    		queueLimit, err := strconv.ParseUint(env.Get(queueLimitEnv, kv.Get(target.MqttQueueLimit)), 10, 64)
    		if err != nil {
    			return nil, err
    		}
    
    		qosEnv := target.EnvMQTTQoS
    		if k != config.Default {
    			qosEnv = qosEnv + config.Default + k
    		}
    
    		// Parse uint8 value
    		qos, err := strconv.ParseUint(env.Get(qosEnv, kv.Get(target.MqttQoS)), 10, 8)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  3. src/encoding/json/decode.go

    			n, err := strconv.ParseInt(string(item), 10, 64)
    			if err != nil || v.OverflowInt(n) {
    				d.saveError(&UnmarshalTypeError{Value: "number " + string(item), Type: v.Type(), Offset: int64(d.readIndex())})
    				break
    			}
    			v.SetInt(n)
    
    		case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    			n, err := strconv.ParseUint(string(item), 10, 64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  4. src/database/sql/convert.go

    		if src == nil {
    			return fmt.Errorf("converting NULL to %s is unsupported", dv.Kind())
    		}
    		s := asString(src)
    		u64, err := strconv.ParseUint(s, 10, dv.Type().Bits())
    		if err != nil {
    			err = strconvErr(err)
    			return fmt.Errorf("converting driver.Value type %T (%q) to a %s: %v", src, s, dv.Kind(), err)
    		}
    		dv.SetUint(u64)
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiClientJdkCompatibilityTest.groovy

                    mainClass = "ToolingApiCompatibilityClient"
                    javaLauncher = javaToolchains.launcherFor {
                        languageVersion = JavaLanguageVersion.of(Integer.parseInt(project.findProperty("clientJdk")))
                    }
                    enableAssertions = true
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. internal/config/api/api.go

    	maxVerStr := env.Get(EnvAPIObjectMaxVersions, "")
    	if maxVerStr == "" {
    		maxVerStr = env.Get(EnvAPIObjectMaxVersionsLegacy, kvs.Get(apiObjectMaxVersions))
    	}
    	if maxVerStr != "" {
    		maxVersions, err := strconv.ParseInt(maxVerStr, 10, 64)
    		if err != nil {
    			return cfg, err
    		}
    		if maxVersions <= 0 {
    			return cfg, fmt.Errorf("invalid object max versions value: %v", maxVersions)
    		}
    		cfg.ObjectMaxVersions = maxVersions
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  7. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                prop.load(in);
                version = prop.getProperty("fess.version", "0.0.0");
                final String[] values = version.split("\\.");
                majorVersion = Integer.parseInt(values[0]);
                minorVersion = Integer.parseInt(values[1]);
                productVersion = majorVersion + "." + minorVersion;
                System.setProperty("fess.version", version);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun May 26 05:52:29 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. cmd/handler-api.go

    func cgroupMemLimit() (limit uint64) {
    	buf, err := os.ReadFile(cgroupV2MemLimitFile)
    	if err != nil {
    		buf, err = os.ReadFile(cgroupV1MemLimitFile)
    	}
    	if err != nil {
    		return 0
    	}
    	limit, err = strconv.ParseUint(strings.TrimSpace(string(buf)), 10, 64)
    	if err != nil {
    		// The kernel can return valid but non integer values
    		// but still, no need to interpret more
    		return 0
    	}
    	if limit == cgroupMemNoLimit {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. src/syscall/exec_linux_test.go

    		t.Skip("skipping test on android; see Issue 27327")
    	}
    
    	u, err := user.Lookup("nobody")
    	if err != nil {
    		t.Fatal(err)
    	}
    	uid, err := strconv.ParseInt(u.Uid, 0, 32)
    	if err != nil {
    		t.Fatal(err)
    	}
    	gid, err := strconv.ParseInt(u.Gid, 0, 32)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Copy the test binary to a temporary location which is readable by nobody.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go

    		return InboundBinding{}
    	}
    
    	// parse port
    	port := uint32(0)
    	if len(parts) == 2 {
    		parsed, err := strconv.ParseUint(parts[1], 10, 32)
    		if err != nil {
    			log.Warnf("invalid port %s for %s.", parts[1], constants.AmbientWaypointInboundBinding)
    		}
    		port = uint32(parsed)
    	}
    
    	return InboundBinding{
    		Port:     port,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top