- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for maxCnt (0.04 sec)
-
cmd/erasure-metadata-utils.go
continue } errorCounts[err]++ } maxCnt := 0 for err, count := range errorCounts { switch { case maxCnt < count: maxCnt = count maxErr = err // Prefer `nil` over other error values with the same // number of occurrences. case maxCnt == count && err == nil: maxErr = err } } return maxCnt, maxErr }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.7K bytes - Viewed (0) -
cmd/metacache-set.go
} filter := func(list []uint64) (commonCount uint64) { maxCnt := 0 signatureMap := map[uint64]int{} for _, v := range list { signatureMap[v]++ } for ops, count := range signatureMap { if maxCnt < count && commonCount < ops { maxCnt = count commonCount = ops } } if maxCnt < readQuorum { return 0 } return commonCount }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
void testEncodeMaxValues() { // Given long maxLong = Long.MAX_VALUE; int maxInt = Integer.MAX_VALUE; SrvCopychunk chunk = new SrvCopychunk(maxLong, maxLong, maxInt); // When int bytesWritten = chunk.encode(buffer, startIndex); // Then assertEquals(EXPECTED_SIZE, bytesWritten);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
byte[] buffer = new byte[22]; long maxLong = Long.MAX_VALUE; int maxInt = Integer.MAX_VALUE; // Encode test data int offset = 0; SMBUtil.writeInt8(maxLong, buffer, offset); offset += 8; SMBUtil.writeInt8(maxLong, buffer, offset); offset += 8; SMBUtil.writeInt4(maxInt, buffer, offset); offset += 4; buffer[offset++] = (byte) 0xFF;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java
FessEnv.SimpleImpl maxEnv = new FessEnv.SimpleImpl() { protected Properties prepareProperties() { Properties props = new Properties(); props.setProperty(FessEnv.TIME_ADJUST_TIME_MILLIS, String.valueOf(Long.MAX_VALUE)); return props; } }; assertEquals(Long.valueOf(Long.MAX_VALUE), maxEnv.getTimeAdjustTimeMillisAsLong()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
} } } private static final BigInteger MAX_INT = BigInteger.valueOf(Integer.MAX_VALUE); private static final BigInteger MIN_INT = BigInteger.valueOf(Integer.MIN_VALUE); private static int saturatedCast(BigInteger big) { if (big.compareTo(MAX_INT) > 0) { return Integer.MAX_VALUE; } if (big.compareTo(MIN_INT) < 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 24.1K bytes - Viewed (0) -
cmd/erasure-server-pool.go
if globalIsDistErasure { n = 2048 } // Avoid allocating more than half of the available memory if maxN := availableMemory() / (blockSizeV2 * 2); n > maxN { n = maxN } if globalIsCICD || strconv.IntSize == 32 { n = 256 // 256MiB for CI/CD environments is sufficient or on 32bit platforms. }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 89.1K bytes - Viewed (0) -
cmd/test-utils_test.go
} // fetches a random number between range min-max. func getRandomRange(minN, maxN int, seed int64) int { // special value -1 means no explicit seeding. if seed == -1 { return rand.New(rand.NewSource(time.Now().UnixNano())).Intn(maxN-minN) + minN } return rand.New(rand.NewSource(seed)).Intn(maxN-minN) + minN } // Randomizes the order of bytes in the byte array
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 77K bytes - Viewed (0) -
cmd/admin-handlers.go
Drives: anonymizeDrives(server.Disks), PoolNumber: func() int { if len(server.PoolNumbers) == 1 { return server.PoolNumbers[0] } return math.MaxInt // this indicates that its unset. }(), PoolNumbers: server.PoolNumbers, MemStats: madmin.MemStats{ Alloc: server.MemStats.Alloc, TotalAlloc: server.MemStats.TotalAlloc,
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 99.6K bytes - Viewed (0)