Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for strconv (0.24 sec)

  1. cmd/peer-rest-server.go

    	bucketName := r.Form.Get(peerRESTBucket)
    	enableSha256 := r.Form.Get(peerRESTEnableSha256) == "true"
    
    	size, err := strconv.Atoi(sizeStr)
    	if err != nil {
    		size = 64 * humanize.MiByte
    	}
    
    	concurrent, err := strconv.Atoi(concurrentStr)
    	if err != nil {
    		concurrent = 32
    	}
    
    	duration, err := time.ParseDuration(durationStr)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	if err != nil || interval < time.Second {
    		interval = defaultMetricsInterval
    	}
    
    	n, err := strconv.Atoi(r.Form.Get("n"))
    	if err != nil || n <= 0 {
    		n = math.MaxInt32
    	}
    
    	var types madmin.MetricType
    	if t, _ := strconv.ParseUint(r.Form.Get("types"), 10, 64); t != 0 {
    		types = madmin.MetricType(t)
    	} else {
    		types = madmin.MetricsAll
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  3. cmd/batch-handlers.go

    	})
    	if err != nil {
    		return err
    	}
    
    	c.SetAppInfo("minio-"+batchJobPrefix, r.APIVersion+" "+job.ID)
    	core := &miniogo.Core{Client: c}
    
    	workerSize, err := strconv.Atoi(env.Get("_MINIO_BATCH_REPLICATION_WORKERS", strconv.Itoa(runtime.GOMAXPROCS(0)/2)))
    	if err != nil {
    		return err
    	}
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		// invalid worker size.
    		return err
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    				res["free-versions"] = strconv.Itoa(len(fivs.FreeVersions))
    			}
    
    			if sizeS.versions > 0 {
    				res["versions"] = strconv.FormatUint(sizeS.versions, 10)
    			}
    			res["size"] = strconv.FormatInt(sizeS.totalSize, 10)
    			for name, tier := range sizeS.tiers {
    				res["tier-size-"+name] = strconv.FormatUint(tier.TotalSize, 10)
    				res["tier-versions-"+name] = strconv.Itoa(tier.NumVersions)
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. tests/query_test.go

    package tests_test
    
    import (
    	"database/sql"
    	"database/sql/driver"
    	"fmt"
    	"reflect"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestFind(t *testing.T) {
    	users := []User{
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	req.Header.Set("x-amz-content-sha256", "STREAMING-AWS4-HMAC-SHA256-PAYLOAD")
    	req.Header.Set("content-encoding", "aws-chunked")
    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    	req.Body = io.NopCloser(body)
    	req.ContentLength = contentLength
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    			if n, err := strconv.Atoi(s[len("__cgodebug_str__"):]); err == nil {
    				return n
    			}
    		}
    		return -1
    	}
    	indexOfDebugStrlen := func(s string) int {
    		// Some systems use leading _ to denote non-assembly symbols.
    		if strings.HasPrefix(s, "___") {
    			s = s[1:]
    		}
    		if strings.HasPrefix(s, "__cgodebug_strlen__") {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    		if rn.Intn(8) == 0 && cap(b) > 0 {
    			b = b[1:1:cap(b)]
    		}
    
    		// Append a random integer of varying width.
    		n := int64(rn.Intn(1 << rn.Intn(30)))
    		want = append(strconv.AppendInt(want, n, 10), ' ')
    		b = append(strconv.AppendInt(b, n, 10), ' ')
    		w.Write(b)
    	}
    	w.Flush()
    
    	if !bytes.Equal(got.Bytes(), want) {
    		t.Errorf("output mismatch:\ngot  %s\nwant %s", got.Bytes(), want)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    		}
    
    		if parityDrives >= len(storageDisks)/2 {
    			parityDrives = len(storageDisks) / 2
    		}
    
    		if parityOrig != parityDrives {
    			userDefined[minIOErasureUpgraded] = strconv.Itoa(parityOrig) + "->" + strconv.Itoa(parityDrives)
    		}
    	}
    	dataDrives := len(storageDisks) - parityDrives
    
    	// we now know the number of blocks this object needs for data and parity.
    	// writeQuorum is dataBlocks + 1
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  10. cmd/erasure-server-pool.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/http"
    	"path"
    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/google/uuid"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio-go/v7/pkg/s3utils"
    	"github.com/minio/minio-go/v7/pkg/set"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
Back to top