- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 515 for fuint64 (0.09 sec)
-
internal/kms/kms.go
type Metrics struct { ReqOK uint64 `json:"kms_req_success"` // Number of requests that succeeded ReqErr uint64 `json:"kms_req_error"` // Number of requests that failed with a defined error ReqFail uint64 `json:"kms_req_failure"` // Number of requests that failed with an undefined error Latency map[time.Duration]uint64 `json:"kms_resp_time"` // Latency histogram of all requests
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
if cardinality <= 0 { return -1 } // use the faster version as per siphash docs // https://github.com/dchest/siphash#usage k0, k1 := binary.LittleEndian.Uint64(id[0:8]), binary.LittleEndian.Uint64(id[8:16]) sum64 := siphash.Hash(k0, k1, []byte(key)) return int(sum64 % uint64(cardinality)) } // hashOrder - hashes input key to return consistent // hashed integer slice. Returned integer order is salted
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
internal/bpool/bpool_test.go
for i := uint64(0); i < size*2; i++ { bp.Put(make([]byte, bp.w, bp.wcap)) } b = bp.Get() if len(b) != width { t.Fatalf("bytepool length invalid: got %v want %v", len(b), width) } if cap(b) != capWidth { t.Fatalf("bytepool length invalid: got %v want %v", cap(b), capWidth) } bp.Put(b) // Check the size of the pool. if uint64(len(bp.c)) != size {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 2.8K bytes - Viewed (0) -
cmd/xl-storage-format-utils.go
// hashDeterministicString will return a deterministic hash for the map values. // Trivial collisions are avoided, but this is by no means a strong hash. func hashDeterministicString(m map[string]string) uint64 { // Seed (random) crc := uint64(0xc2b40bbac11a7295) // Xor each value to make order independent for k, v := range m { // Separate key and value with an individual xor with a random number.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
cni/pkg/nodeagent/netns_linux.go
) type NetnsWrapper struct { innerNetns netns.NetNS inode uint64 } func (n *NetnsWrapper) Inode() uint64 { return n.inode } func (n *NetnsWrapper) Close() error { return n.innerNetns.Close() } func (n *NetnsWrapper) Fd() uintptr { return n.innerNetns.Fd() } func inodeForFd(n NetnsFd) (uint64, error) { stats := &unix.Stat_t{} err := unix.Fstat(int(n.Fd()), stats)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jan 31 10:05:36 UTC 2024 - 2.7K bytes - Viewed (0) -
cni/pkg/nodeagent/fakes_test.go
} // fakeNs is a mock struct for testing type fakeNs struct { closed *atomic.Bool fd uintptr inode uint64 } func newFakeNs(fd uintptr) *fakeNs { // the fake inode is the fd! magic. return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)} } func newFakeNsInode(fd uintptr, inode uint64) *fakeNs { return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode} } // Fd returns the file descriptor
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 23:33:46 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/os-dirent_fileino.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import "syscall" func direntInode(dirent *syscall.Dirent) uint64 { return uint64(dirent.Fileno)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 950 bytes - Viewed (0) -
internal/bucket/bandwidth/measurement.go
) // bucketMeasurement captures the bandwidth details for one bucket type bucketMeasurement struct { lock sync.Mutex bytesSinceLastWindow uint64 // Total bytes since last window was processed startTime time.Time // Start time for window expMovingAvg float64 // Previously calculate sliding window }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 03 20:41:51 UTC 2023 - 2.9K bytes - Viewed (0) -
internal/dsync/dsync_test.go
// As a matter of fact, this benchmark still triggers some spinning in the mutex. m := NewDRWMutex(ds, "") var acc0, acc1 uint64 b.SetParallelism(4) b.RunParallel(func(pb *testing.PB) { c := make(chan bool) var data [4 << 10]uint64 for i := 0; pb.Next(); i++ { if i%4 == 0 { m.Lock(id, source) acc0 -= 100 acc1 += 100 m.Unlock(context.Background())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 19 14:35:19 UTC 2024 - 11.1K bytes - Viewed (0) -
internal/disk/stat_bsd.go
s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err } reservedBlocks := s.Bfree - s.Bavail info = Info{ Total: uint64(s.Bsize) * (s.Blocks - reservedBlocks), Free: uint64(s.Bsize) * s.Bavail, Files: s.Files, Ffree: s.Ffree, FSType: getFSType(s.Fstypename[:]), } if info.Free > info.Total {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.7K bytes - Viewed (0)