Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 516 for Len (0.14 sec)

  1. internal/s3select/sql/parser_test.go

    		t.Fatal(err)
    	}
    	tokens, err := lexer.ConsumeAll(lex)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// for i, t := range tokens {
    	// 	fmt.Printf("%d: %#v\n", i, t)
    	// }
    	if len(tokens) != 7 {
    		t.Fatalf("Expected 7 got %d", len(tokens))
    	}
    }
    
    func TestSelectWhere(t *testing.T) {
    	p := participle.MustBuild(
    		&Select{},
    		participle.Lexer(sqlLexer),
    		participle.CaseInsensitive("Keyword"),
    	)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  2. internal/grid/grid_types_msgp_test.go

    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *testResponse) Msgsize() (s int) {
    	s = 1 + 7 + msgp.IntSize + 10 + msgp.StringPrefixSize + len(z.OrgString) + 9 + 1 + 4 + msgp.IntSize + 7 + msgp.StringPrefixSize + len(z.Embedded.String)
    	return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 8.1K bytes
    - Viewed (0)
  3. cmd/metrics-v2.go

    			httpStats := globalHTTPStats.toServerHTTPStats(true)
    			metrics = make([]MetricV2, 0, 3+
    				len(httpStats.CurrentS3Requests.APIStats)+
    				len(httpStats.TotalS3Requests.APIStats)+
    				len(httpStats.TotalS3Errors.APIStats)+
    				len(httpStats.TotalS35xxErrors.APIStats)+
    				len(httpStats.TotalS34xxErrors.APIStats))
    			metrics = append(metrics, MetricV2{
    				Description: getS3RejectedAuthRequestsTotalMD(),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  4. internal/disk/stat_linux.go

    }
    
    func readDriveStats(statsFile string) (iostats IOStats, err error) {
    	stats, err := readStat(statsFile)
    	if err != nil {
    		return IOStats{}, err
    	}
    	if len(stats) < 11 {
    		return IOStats{}, fmt.Errorf("found invalid format while reading %v", statsFile)
    	}
    	// refer https://www.kernel.org/doc/Documentation/block/stat.txt
    	iostats = IOStats{
    		ReadIOs:      stats[0],
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. internal/mountinfo/mountinfo_linux.go

    				crossMounts = append(crossMounts, mount)
    			}
    		}
    	}
    	msg := `Cross-device mounts detected on path (%s) at following locations %s. Export path should not have any sub-mounts, refusing to start.`
    	if len(crossMounts) > 0 {
    		// if paths didn't match then we do have cross-device mount.
    		return fmt.Errorf(msg, path, crossMounts)
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  6. internal/grid/msg_gen.go

    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *connectReq) Msgsize() (s int) {
    	s = 1 + 3 + msgp.ArrayHeaderSize + (16 * (msgp.ByteSize)) + 5 + msgp.StringPrefixSize + len(z.Host)
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *connectResp) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, err = dc.ReadMapHeader()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 18.8K bytes
    - Viewed (0)
  7. cmd/os-instrumented.go

    			m.LifeTimeOps[i.String()] = n
    		}
    	}
    	if len(m.LifeTimeOps) == 0 {
    		m.LifeTimeOps = nil
    	}
    
    	m.LastMinute.Operations = make(map[string]madmin.TimedAction, osMetricLast)
    	for i := osMetric(0); i < osMetricLast; i++ {
    		lm := o.latency[i].total()
    		if lm.N > 0 {
    			m.LastMinute.Operations[i.String()] = lm.asTimedAction()
    		}
    	}
    	if len(m.LastMinute.Operations) == 0 {
    		m.LastMinute.Operations = nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  8. internal/config/identity/openid/openid.go

    		return Config{}
    	}
    	cfg := Config{
    		Enabled:            r.Enabled,
    		arnProviderCfgsMap: make(map[arn.ARN]*providerCfg, len(r.arnProviderCfgsMap)),
    		ProviderCfgs:       make(map[string]*providerCfg, len(r.ProviderCfgs)),
    		pubKeys:            r.pubKeys,
    		roleArnPolicyMap:   make(map[arn.ARN]string, len(r.roleArnPolicyMap)),
    		transport:          r.transport,
    		closeRespFn:        r.closeRespFn,
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  9. internal/disk/type_bsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    // getFSType returns the filesystem type of the underlying mounted filesystem
    func getFSType(fstype []int8) string {
    	b := make([]byte, len(fstype))
    	for i, v := range fstype {
    		b[i] = byte(v)
    	}
    	return string(b)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  10. cmd/object-api-getobjectinfo_test.go

    	if err != nil {
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	// Put an empty directory
    	_, err = obj.PutObject(context.Background(), "test-getobjectinfo", "Asia/empty-dir/", mustGetPutObjReader(t, bytes.NewBufferString(""), int64(len("")), "", ""), opts)
    	if err != nil {
    		t.Fatalf("%s : %s", instanceType, err.Error())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 5.6K bytes
    - Viewed (0)
Back to top