Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for FormatUint (0.33 sec)

  1. utils/utils.go

    		return v
    	case int:
    		return strconv.FormatInt(int64(v), 10)
    	case int8:
    		return strconv.FormatInt(int64(v), 10)
    	case int16:
    		return strconv.FormatInt(int64(v), 10)
    	case int32:
    		return strconv.FormatInt(int64(v), 10)
    	case int64:
    		return strconv.FormatInt(v, 10)
    	case uint:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint8:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint16:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. cmd/peer-rest-client.go

    	queryVals := make(url.Values)
    	if opts.Serial {
    		queryVals.Set("serial", "true")
    	}
    	queryVals.Set("blocksize", strconv.FormatUint(opts.BlockSize, 10))
    	queryVals.Set("filesize", strconv.FormatUint(opts.FileSize, 10))
    
    	respBody, err := client.callWithContext(ctx, peerRESTMethodDriveSpeedTest, queryVals, nil, -1)
    	if err != nil {
    		return madmin.DriveSpeedTestResult{}, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    			paths = append([]string{p.String()}, paths...)
    			var errStr string
    			if err != nil {
    				errStr = err.Error()
    			}
    			custom["total-errs-timeout"] = strconv.FormatUint(p.totalErrsTimeout.Load(), 10)
    			custom["total-errs-availability"] = strconv.FormatUint(p.totalErrsAvailability.Load(), 10)
    			globalTrace.Publish(storageTrace(s, startTime, duration, strings.Join(paths, " "), errStr, custom))
    		}
    	}
    }
    
    const (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. internal/disk/stat_linux_s390x.go

    	"2fc12fc1": "zfs",
    	"ff534d42": "cifs",
    	"53464846": "wslfs",
    }
    
    // getFSType returns the filesystem type of the underlying mounted filesystem
    func getFSType(ftype uint32) string {
    	fsTypeHex := strconv.FormatUint(uint64(ftype), 16)
    	fsTypeString, ok := fsType2StringMap[fsTypeHex]
    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  5. cmd/bucket-lifecycle.go

    	u, err := uuid.NewRandom()
    	if err != nil {
    		return "", err
    	}
    	us := u.String()
    	hash := xxh3.HashString(pathJoin(globalDeploymentID(), bucket))
    	obj := fmt.Sprintf("%s/%s/%s/%s", strconv.FormatUint(hash, 16), us[0:2], us[2:4], us)
    	return obj, nil
    }
    
    // transition object to target specified by the transition ARN. When an object is transitioned to another
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  6. 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)
    			}
    			if sizeS.failedCount > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  7. cmd/encryption-v1.go

    	size, err := sio.EncryptedSize(uint64(o.Size))
    	if err != nil {
    		// This cannot happen since AWS S3 allows parts to be 5GB at most
    		// sio max. size is 256 TB
    		reqInfo := (&logger.ReqInfo{}).AppendTags("size", strconv.FormatUint(size, 10))
    		ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    		logger.CriticalIf(ctx, err)
    	}
    	return int64(size)
    }
    
    // DecryptObjectInfo tries to decrypt the provided object if it is encrypted.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  8. cmd/data-scanner.go

    			f.newCache.replaceHashed(thisHash, folder.parent, *flat)
    			total := map[string]string{
    				"objects": strconv.FormatUint(flat.Objects, 10),
    				"size":    strconv.FormatInt(flat.Size, 10),
    			}
    			if flat.Versions > 0 {
    				total["versions"] = strconv.FormatUint(flat.Versions, 10)
    			}
    			stop(total)
    		}
    
    	}
    	// Compact if too many children...
    	if !into.Compacted {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  9. internal/grid/debugmsg_string.go

    var _debugMsg_index = [...]uint8{0, 13, 29, 46, 62, 86, 112, 130, 151}
    
    func (i debugMsg) String() string {
    	if i < 0 || i >= debugMsg(len(_debugMsg_index)-1) {
    		return "debugMsg(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _debugMsg_name[_debugMsg_index[i]:_debugMsg_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 16:43:38 GMT 2024
    - 993 bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/action_string.go

    var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127, 150, 182, 193}
    
    func (i Action) String() string {
    	if i < 0 || i >= Action(len(_Action_index)-1) {
    		return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _Action_name[_Action_index[i]:_Action_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.1K bytes
    - Viewed (0)
Back to top