Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for dtoi (0.05 sec)

  1. 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)
  2. src/cmd/internal/pgo/deserialize.go

    		}
    		readStr = scanner.Text()
    
    		split := strings.Split(readStr, " ")
    
    		if len(split) != 2 {
    			return nil, fmt.Errorf("preprocessed profile entry got %v want 2 fields", split)
    		}
    
    		co, err := strconv.Atoi(split[0])
    		if err != nil {
    			return nil, fmt.Errorf("preprocessed profile error processing call line: %w", err)
    		}
    
    		edge := NamedCallEdge{
    			CallerName:     callerName,
    			CalleeName:     calleeName,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top