Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 74 for atof (0.05 sec)

  1. statement.go

    func (stmt *Statement) BuildCondition(query interface{}, args ...interface{}) []clause.Expression {
    	if s, ok := query.(string); ok {
    		// if it is a number, then treats it as primary key
    		if _, err := strconv.Atoi(s); err != nil {
    			if s == "" && len(args) == 0 {
    				return nil
    			}
    
    			if len(args) == 0 || (len(args) > 0 && strings.Contains(s, "?")) {
    				// looks like a where condition
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. internal/event/target/elasticsearch.go

    	parts := strings.Split(version, ".")
    	if len(parts) < 1 {
    		err = fmt.Errorf("bad ES version string: %s", version)
    		return
    	}
    
    	majorVersion, err := strconv.Atoi(parts[0])
    	if err != nil {
    		err = fmt.Errorf("bad ES version string: %s", version)
    		return
    	}
    
    	switch {
    	case majorVersion <= 6:
    		res = ESSUnsupported
    	default:
    		res = ESSSupported
    	}
    	return
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. internal/dsync/drwmutex.go

    	dsyncLog = env.Get("_MINIO_DSYNC_TRACE", "0") == "1"
    
    	lockRetryMinInterval = 250 * time.Millisecond
    	if lri := env.Get("_MINIO_LOCK_RETRY_INTERVAL", ""); lri != "" {
    		v, err := strconv.Atoi(lri)
    		if err != nil {
    			panic(err)
    		}
    		lockRetryMinInterval = time.Duration(v) * time.Millisecond
    	}
    
    	lockRetryBackOff = backoffWait(
    		lockRetryMinInterval,
    		100*time.Millisecond,
    		5*time.Second,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 09 15:49:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. cmd/batch-expire.go

    	}
    	if err := ri.loadOrInit(ctx, api, job); err != nil {
    		return err
    	}
    
    	globalBatchJobsMetrics.save(job.ID, ri)
    	lastObject := ri.Object
    
    	now := time.Now().UTC()
    
    	workerSize, err := strconv.Atoi(env.Get("_MINIO_BATCH_EXPIRATION_WORKERS", strconv.Itoa(runtime.GOMAXPROCS(0)/2)))
    	if err != nil {
    		return err
    	}
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		// invalid worker size.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. cmd/sftp-server.go

    			host, portStr, err := net.SplitHostPort(tokens[1])
    			if err != nil {
    				logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s (%v)", arg, err), "unable to start SFTP server")
    			}
    			port, err = strconv.Atoi(portStr)
    			if err != nil {
    				logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s (%v)", arg, err), "unable to start SFTP server")
    			}
    			if port < 1 || port > 65535 {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. cmd/common-main.go

    		OpenIDProviders: buildOpenIDConsoleConfig(),
    	}
    
    	server := consoleapi.NewServer(api)
    	// register all APIs
    	server.ConfigureAPI()
    
    	consolePort, _ := strconv.Atoi(globalMinioConsolePort)
    
    	server.Host = globalMinioConsoleHost
    	server.Port = consolePort
    	consoleapi.Port = globalMinioConsolePort
    	consoleapi.Hostname = globalMinioConsoleHost
    
    	if globalIsTLS {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  7. cmd/sts-handlers.go

    		return
    	}
    
    	durationParam := r.Form.Get(stsDurationSeconds)
    	var requestedDuration int
    	if durationParam != "" {
    		var err error
    		requestedDuration, err = strconv.Atoi(durationParam)
    		if err != nil {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Invalid requested duration: %s", durationParam))
    			return
    		}
    	}
    
    	roleArnStr := r.Form.Get(stsRoleArn)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    		c1 := strings.Index(line, ":")
    		if c1 < 0 {
    			continue
    		}
    		c2 := strings.Index(line[c1+1:], ":")
    		if c2 < 0 {
    			continue
    		}
    		c2 += c1 + 1
    
    		filename := line[:c1]
    		i, _ := strconv.Atoi(line[c1+1 : c2])
    		i--
    		if i < 0 || i >= len(names) {
    			if isError {
    				sawUnmatchedErrors = true
    			}
    			continue
    		}
    
    		switch filename {
    		case "completed":
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/asm.go

    	op := operands[0]
    	n := len(op)
    	if n < 3 || op[n-2].ScanToken != '/' || op[n-1].ScanToken != scanner.Int {
    		p.errorf("expect /size for DATA argument")
    		return
    	}
    	szop := op[n-1].String()
    	sz, err := strconv.Atoi(szop)
    	if err != nil {
    		p.errorf("bad size for DATA argument: %q", szop)
    	}
    	op = op[:n-2]
    	nameAddr := p.address(op)
    	if !p.validSymbol("DATA", &nameAddr, true) {
    		return
    	}
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Oct 21 14:11:44 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. cmd/endpoint.go

    			if !strings.Contains(err.Error(), "missing port in address") {
    				return ep, fmt.Errorf("invalid URL endpoint format: %w", err)
    			}
    
    			host = u.Host
    		} else {
    			var p int
    			p, err = strconv.Atoi(port)
    			if err != nil {
    				return ep, fmt.Errorf("invalid URL endpoint format: invalid port number")
    			} else if p < 1 || p > 65535 {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top