Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 468 for parseLine (0.26 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. pkg/kubelet/server/server_websocket_test.go

    			ws, err := websocket.Dial(url, "", "http://127.0.0.1/")
    			assert.Equal(t, test.shouldError, err != nil, "websocket dial")
    			if test.shouldError {
    				return
    			}
    			defer ws.Close()
    
    			p, err := strconv.ParseUint(test.port, 10, 16)
    			require.NoError(t, err, "parse port")
    			p16 := uint16(p)
    
    			channel, data, err := wsRead(ws)
    			require.NoError(t, err, "read")
    			assert.Equal(t, dataChannel, int(channel), "channel")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. src/net/http/fs.go

    				return nil, errors.New("invalid range")
    			}
    			i, err := strconv.ParseInt(end, 10, 64)
    			if i < 0 || err != nil {
    				return nil, errors.New("invalid range")
    			}
    			if i > size {
    				i = size
    			}
    			r.start = size - i
    			r.length = size - r.start
    		} else {
    			i, err := strconv.ParseInt(start, 10, 64)
    			if err != nil || i < 0 {
    				return nil, errors.New("invalid range")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/AbstractIdeIntegrationTest.groovy

            def file = options?.project ? file(options.project, filename) : file(filename)
            if (options?.print) { println file.text }
            file
        }
    
        protected parseFile(Map options, String filename) {
            def file = getFile(options, filename)
            new XmlSlurper().parse(file)
        }
    
        protected static void createJavaSourceDirs(TestFile buildFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/IntegerBuildOption.java

            OptionValue<String> propertyValue = getFromProperties(properties);
            String value = propertyValue.getValue();
            if (value != null) {
                applyTo(Integer.parseInt(value), settings, propertyValue.getOrigin());
            }
        }
    
        @Override
        public void configure(CommandLineParser parser) {
            for (CommandLineOptionConfiguration config : commandLineOptionConfigurations) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 11:25:33 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/binutils/disasm.go

    			}
    			if input == "" {
    				break
    			}
    		}
    		input = strings.TrimSpace(input)
    
    		if fields := objdumpAsmOutputRE.FindStringSubmatch(input); len(fields) == 3 {
    			if address, err := strconv.ParseUint(fields[1], 16, 64); err == nil {
    				assembly = append(assembly,
    					plugin.Inst{
    						Addr:     address,
    						Text:     fields[2],
    						Function: function,
    						File:     file,
    						Line:     line,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. platforms/jvm/jacoco/src/testFixtures/groovy/org/gradle/testing/jacoco/plugins/fixtures/JacocoReportXmlFixture.groovy

                    if (it.counter.size() > 0) {
                        def classCounter = it.counter.find { it.@type == "CLASS" }
                        missed = Integer.parseInt(******@****.***ng())
                        covered = Integer.parseInt(******@****.***ng())
                    }
    
                    return new Coverage(name, covered, missed)
                })
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/plugins/form-validator/file.js

    gFileSize"}),a.formUtils.convertSizeNameToBytes=function(a){return a=a.toUpperCase(),"M"===a.substr(a.length-1,1)?1024*parseInt(a.substr(0,a.length-1),10)*1024:"MB"===a.substr(a.length-2,2)?1024*parseInt(a.substr(0,a.length-2),10)*1024:"KB"===a.substr(a.length-2,2)?1024*parseInt(a.substr(0,a.length-2),10):"B"===a.substr(a.length-1,1)?parseInt(a.substr(0,a.length-1),10):parseInt(a,10)},a.formUtils.checkImageDimension=function(a,b,c){var d=!1,e={width:0,height:0},f=function(a){a=a.replace("min",""...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 4.6K bytes
    - Viewed (0)
  10. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    	// system-wide limit on the number of tasks.
    	for _, file := range []string{"/proc/sys/kernel/pid_max", "/proc/sys/kernel/threads-max"} {
    		if content, err := os.ReadFile(file); err == nil {
    			if limit, err := strconv.ParseInt(string(content[:len(content)-1]), 10, 64); err == nil {
    				if taskMax == -1 || taskMax > limit {
    					taskMax = limit
    				}
    			}
    		}
    	}
    	// Both reads did not fail.
    	if taskMax >= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top