Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getThroughput (0.04 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

                return 0.0;
            return (double) errors.get() / total;
        }
    
        /**
         * Get throughput in bytes per second
         *
         * @return throughput in bps
         */
        public long getThroughput() {
            long duration = System.currentTimeMillis() - establishedTime;
            if (duration == 0)
                return 0;
            return (bytesSent.get() + bytesReceived.get()) * 1000 / duration;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            int highErrorScore = channelInfo.getScore();
            assertTrue(highErrorScore < baseScore);
        }
    
        @Test
        void testThroughputCalculation() {
            long initialThroughput = channelInfo.getThroughput();
            assertEquals(0, initialThroughput);
    
            // Add some data transfer
            channelInfo.addBytesSent(1000);
            channelInfo.addBytesReceived(2000);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. docs/smb3-features/03-multi-channel-design.md

        }
        
        public double getErrorRate() {
            long total = requestsSent.get();
            if (total == 0) return 0.0;
            return (double) errors.get() / total;
        }
        
        public long getThroughput() {
            long duration = System.currentTimeMillis() - establishedTime;
            if (duration == 0) return 0;
            return (bytesSent.get() + bytesReceived.get()) * 1000 / duration;
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top