- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 201 for calculate (0.04 sec)
-
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
void testMaxDelayLimit() { // Given SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(10, 1000, 5000, 2.0, true); // When - Calculate delays for increasing attempts long delay1 = policy.getDelayMs(1); long delay2 = policy.getDelayMs(2); long delay3 = policy.getDelayMs(3); long delay4 = policy.getDelayMs(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
pos += 4; // fileId (16 bytes) byte[] fid = fileId != null ? fileId : new byte[16]; System.arraycopy(fid, 0, buf, pos, 16); pos += 16; // Calculate offsets relative to start of SMB2 header int inputOffsetField = inputCount > 0 ? payloadStart : 0; int outputOffsetField = outputCount > 0 ? payloadStart + inputCount : 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
return new Statistics(name, getState(), totalCalls.get(), totalSuccesses.get(), totalFailures.get(), rejectedCalls.get(), consecutiveFailures.get(), getSuccessRate()); } /** * Calculate success rate * * @return success rate (0.0 to 1.0) */ private double getSuccessRate() { long total = totalCalls.get(); if (total == 0) { return 1.0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// Then assertNotNull(response); assertTrue(response instanceof Smb2TreeDisconnectResponse); verify(mockContext, times(1)).getConfig(); } @Test @DisplayName("Should calculate correct message size") void testSize() { // Given Configuration mockConfig = mock(Configuration.class); Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
CIFSException ex = assertThrows(CIFSException.class, () -> ctx.calculateMIC(data)); assertTrue(ex.getMessage().contains("Failed to calculate MIC")); } @Test @DisplayName("calculateMIC with null data throws NPE") void calculateMIC_nullData() { assertThrows(NullPointerException.class, () -> ctx.calculateMIC(null)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
Hexdump.hexdump(ps, data, 0, size); String output = baos.toString(); assertNotNull(output); assertTrue(output.contains("00000:")); // Calculate expected number of lines int expectedLines = (size + 15) / 16; String[] lines = output.split(System.getProperty("line.separator")); assertTrue(lines.length >= expectedLines); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Given - large buffer with many notifications byte[] buffer = new byte[65536]; int offset = 0; setHeaderStart(response, 64); // Calculate space for notifications int notificationSize = 32; // Each notification int notificationCount = 100; int totalSize = notificationSize * notificationCount; // Write structure
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheStats.java
return (totalLoadCount == 0) ? 0.0 : (double) loadExceptionCount / totalLoadCount; } /** * Returns the total number of nanoseconds the cache has spent loading new values. This can be * used to calculate the miss penalty. This value is increased every time {@code loadSuccessCount} * or {@code loadExceptionCount} is incremented. */ @SuppressWarnings("GoodTime") // should return a java.time.Duration
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 12.6K bytes - Viewed (0) -
.teamcity/performance-tests-ci.json
"coverage" : { "per_commit" : [ "linux", "windows", "macOs" ] } } ] }, { "testId" : "org.gradle.performance.regression.android.RealLifeAndroidBuildPerformanceTest.calculate task graph with test finalizer", "groups" : [ { "testProject" : "largeAndroidBuild", "coverage" : { "per_commit" : [ "linux" ] } } ] }, {
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Thu Jul 10 02:18:03 UTC 2025 - 33.4K bytes - Viewed (0) -
cmd/erasure-multipart.go
} } // Add the current part. fi.AddObjectPart(part.Number, part.ETag, part.Size, part.ActualSize, part.ModTime, part.Index, part.Checksums) } // Calculate full object size. var objectSize int64 // Calculate consolidated actual size. var objectActualSize int64 // Order online disks in accordance with distribution order. // Order parts metadata in accordance with distribution order.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 47.3K bytes - Viewed (0)