This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 34571f72 Use better API
34571f72 is described below

commit 34571f72513aacdd9d3d4a4d2ceaa3daee3edbb0
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Dec 26 14:06:16 2023 -0500

    Use better API
---
 src/main/java/org/apache/commons/io/input/ThrottledInputStream.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/io/input/ThrottledInputStream.java 
b/src/main/java/org/apache/commons/io/input/ThrottledInputStream.java
index d94712a6..97fa74c4 100644
--- a/src/main/java/org/apache/commons/io/input/ThrottledInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/ThrottledInputStream.java
@@ -164,7 +164,7 @@ public final class ThrottledInputStream extends 
CountingInputStream {
     /** {@inheritDoc} */
     @Override
     public String toString() {
-        return "ThrottledInputStream[bytesRead=" + getCount() + ", 
maxBytesPerSec=" + maxBytesPerSecond + ", bytesPerSec=" + getBytesPerSecond()
+        return "ThrottledInputStream[bytesRead=" + getByteCount() + ", 
maxBytesPerSec=" + maxBytesPerSecond + ", bytesPerSec=" + getBytesPerSecond()
                 + ", totalSleepDuration=" + totalSleepDuration + ']';
     }
 }

Reply via email to