Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for 10MiB (0.17 sec)

  1. cmd/batch-job-common-types_test.go

    import (
    	"fmt"
    	"testing"
    )
    
    func TestBatchJobSizeInRange(t *testing.T) {
    	tests := []struct {
    		objSize    int64
    		sizeFilter BatchJobSizeFilter
    		want       bool
    	}{
    		{
    			// 1Mib < 2Mib < 10MiB -> in range
    			objSize: 2 << 20,
    			sizeFilter: BatchJobSizeFilter{
    				UpperBound: 10 << 20,
    				LowerBound: 1 << 20,
    			},
    			want: true,
    		},
    		{
    			// 2KiB < 1 MiB -> out of range from left
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Jan 08 23:22:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. cmd/batch-expire_test.go

          metadata:
            - key: content-type
              value: image/* # match objects with 'content-type', all values starting with 'image/'
          size:
            lessThan: "10MiB" # match objects with size less than this value (e.g. 10MiB)
            greaterThan: 1MiB # match objects with size greater than this value (e.g. 1MiB)
          purge:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. cmd/batch-expire.go

    //       metadata:
    //         - key: content-type
    //           value: image/* # match objects with 'content-type', all values starting with 'image/'
    //       size:
    //         lessThan: "10MiB" # match objects with size less than this value (e.g. 10MiB)
    //         greaterThan: 1MiB # match objects with size greater than this value (e.g. 1MiB)
    //       purge:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  4. cmd/handler-api.go

    		// Returns 75% of max memory allowed
    		maxMem := availableMemory()
    
    		// max requests per node is calculated as
    		// total_ram / ram_per_request
    		// ram_per_request is (2MiB+128KiB) * driveCount \
    		//    + 2 * 10MiB (default erasure block size v1) + 2 * 1MiB (default erasure block size v2)
    		blockSize := xioutil.LargeBlock + xioutil.SmallBlock
    		apiRequestsMaxPerNode = int(maxMem / uint64(maxSetDrives*blockSize+int(blockSizeV1*2+blockSizeV2*2)))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. cmd/erasure-healing_test.go

    		{"64KiB", 64 * humanize.KiByte},
    		{"128KiB", 128 * humanize.KiByte},
    		{"1MiB", 1 * humanize.MiByte},
    		{"5MiB", 5 * humanize.MiByte},
    		{"10MiB", 10 * humanize.MiByte},
    		{"5MiB-1KiB", 5*humanize.MiByte - 1*humanize.KiByte},
    		{"10MiB-1Kib", 10*humanize.MiByte - 1*humanize.KiByte},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  6. cmd/server_test.go

    	1234567890,1234567890,1234567890,1234567890,1234567890,1234567890,1234567890,1234567890,1234567890,1234567890,1234567890,
    	1234567890,1234567890,1234567890,1234567890,1234567890,123"`
    	// Create 10MiB content where each line contains 1024 characters.
    	for i := 0; i < 10*1024; i++ {
    		buffer.WriteString(fmt.Sprintf("[%05d] %s\n", i, line))
    	}
    	putContent := buffer.String()
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top