Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 151 for dtoi (0.13 sec)

  1. pkg/probe/tcp/tcp_test.go

    		w.WriteHeader(http.StatusOK)
    	}))
    	defer server.Close()
    	tHost, tPortStr, err := net.SplitHostPort(server.Listener.Addr().String())
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	tPort, err := strconv.Atoi(tPortStr)
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    	tests := []struct {
    		host string
    		port int
    
    		expectedStatus probe.Result
    		expectedError  error
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 18:23:33 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  2. src/os/user/cgo_lookup_unix.go

    	}
    	if err != nil {
    		return nil, fmt.Errorf("user: lookup username %s: %v", username, err)
    	}
    	return buildUser(&pwd), err
    }
    
    func lookupUserId(uid string) (*User, error) {
    	i, e := strconv.Atoi(uid)
    	if e != nil {
    		return nil, e
    	}
    	return lookupUnixUid(i)
    }
    
    func lookupUnixUid(uid int) (*User, error) {
    	var pwd _C_struct_passwd
    	var found bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/profile/index.go

    			for i, t := range sampleTypes(p) {
    				if t == dst {
    					return i, nil
    				}
    			}
    		}
    		// By default select the last sample value
    		return len(p.SampleType) - 1, nil
    	}
    	if i, err := strconv.Atoi(sampleIndex); err == nil {
    		if i < 0 || i >= len(p.SampleType) {
    			return 0, fmt.Errorf("sample_index %s is outside the range [0..%d]", sampleIndex, len(p.SampleType)-1)
    		}
    		return i, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 19:18:53 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test2json_interrupt.txt

    		if !sentInterrupt {
    			// Simulate a ctrl-C on the keyboard by sending SIGINT
    			// to the main test process and its parent.
    			for _, pid := range strings.Split(pids, ",") {
    				i, err := strconv.Atoi(pid)
    				if err != nil {
    					t.Fatal(err)
    				}
    				if p, err := os.FindProcess(i); err == nil {
    					p.Signal(os.Interrupt)
    					sentInterrupt = true // Only send interrupts once.
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 08 03:52:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. pkg/util/env/env.go

    // the given key and falls back to the given defaultValue if not set
    func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error) {
    	if v := os.Getenv(key); v != "" {
    		value, err := strconv.Atoi(v)
    		if err != nil {
    			return defaultValue, err
    		}
    		return value, nil
    	}
    	return defaultValue, nil
    }
    
    // GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 27 15:25:19 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/go/internal/base/limit.go

    // be allowed.
    func NetLimit() (int, bool) {
    	netLimitOnce.Do(func() {
    		s := NetLimitGodebug.Value()
    		if s == "" {
    			return
    		}
    
    		n, err := strconv.Atoi(s)
    		if err != nil {
    			Fatalf("invalid %s: %v", NetLimitGodebug.Name(), err)
    		}
    		if n < 0 {
    			// Treat negative values as unlimited.
    			return
    		}
    		netLimitSem = make(chan struct{}, n)
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 02:47:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/stackcheck_test.go

    	// Get expected limit.
    	limitRe := regexp.MustCompile(`nosplit stack over (\d+) byte limit`)
    	m := limitRe.FindStringSubmatch(out)
    	if m == nil {
    		t.Fatalf("no overflow errors in output")
    	}
    	limit, _ := strconv.Atoi(m[1])
    
    	wantMap := map[string]string{
    		"main.startSelf": fmt.Sprintf(
    			`main.startSelf<0>
        grows 1008 bytes
        %d bytes over limit
    `, 1008-limit),
    		"main.startChain": fmt.Sprintf(
    			`main.startChain<0>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/go/build/constraint/vers.go

    		return minVersion(z.X, -sign)
    	case *TagExpr:
    		if sign < 0 {
    			// !foo implies nothing
    			return -1
    		}
    		if z.Tag == "go1" {
    			return 0
    		}
    		_, v, _ := strings.Cut(z.Tag, "go1.")
    		n, err := strconv.Atoi(v)
    		if err != nil {
    			// not a go1.N tag
    			return -1
    		}
    		return n
    	}
    }
    
    // andVersion returns the minimum Go version
    // implied by the AND of two minimum Go versions,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 14:19:00 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. operator/pkg/util/path.go

    }
    
    // IsNPathElement report whether pe is an index path element.
    func IsNPathElement(pe string) bool {
    	pe, ok := RemoveBrackets(pe)
    	if !ok {
    		return false
    	}
    
    	n, err := strconv.Atoi(pe)
    	return err == nil && n >= InsertIndex
    }
    
    // PathKV returns the key and value string parts of the entire key/value path element.
    // It returns an error if pe is not a key/value path element.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/main/resources/fess_indices/fess/en-ie/stopwords.txt

    arna
    as
    b'
    ba
    beirt
    bhúr
    caoga
    ceathair
    ceathrar
    chomh
    chtó
    chuig
    chun
    cois
    céad
    cúig
    cúigear
    d'
    daichead
    dar
    de
    deich
    deichniúr
    den
    dhá
    do
    don
    dtí
    dá
    dár
    dó
    faoi
    faoin
    faoina
    faoinár
    fara
    fiche
    gach
    gan
    go
    gur
    haon
    hocht
    i
    iad
    idir
    in
    ina
    ins
    inár
    is
    le
    leis
    lena
    lenár
    m'
    mar
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Jul 19 06:31:02 UTC 2018
    - 685 bytes
    - Viewed (0)
Back to top