- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 248 for calculate (0.06 seconds)
-
cmd/prepare-storage.go
if len(endpoints) == 0 || setCount == 0 || setDriveCount == 0 { return nil, nil, errInvalidArgument } // prepare getElapsedTime() to calculate elapsed time since we started trying formatting disks. // All times are rounded to avoid showing milli, micro and nano seconds formatStartTime := time.Now().Round(time.Second) getElapsedTime := func() string {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jul 12 20:51:54 GMT 2024 - 11.1K bytes - Click Count (1) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/SplitPackagesAuditTask.java
params.getMarkerFile().set(markerFile); }); } private Map<File, String> getProjectBuildDirs() { // while this is done in every project, it should be cheap to calculate Map<File, String> buildDirs = new HashMap<>(); for (Project project : getProject().getRootProject().getAllprojects()) { buildDirs.put(project.getBuildDir(), project.getPath()); }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 08 22:04:23 GMT 2021 - 14.2K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
*/ private byte[] createMultipleNotificationsBuffer() throws Exception { ByteBuffer buffer = ByteBuffer.allocate(1024); buffer.order(ByteOrder.LITTLE_ENDIAN); // Calculate offsets (must be 4-byte aligned) String fileName1 = "file1.txt"; String fileName2 = "file2.txt"; String fileName3 = "file3.txt"; byte[] fileNameBytes1 = fileName1.getBytes("UTF-16LE");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.7K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.1K bytes - Click Count (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)); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (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;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.3K bytes - Click Count (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); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0)