Skip to content

Commit 34571f7

Browse files
committed
Use better API
1 parent 11b7a0e commit 34571f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/input/ThrottledInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private void throttle() throws InterruptedIOException {
164164
/** {@inheritDoc} */
165165
@Override
166166
public String toString() {
167-
return "ThrottledInputStream[bytesRead=" + getCount() + ", maxBytesPerSec=" + maxBytesPerSecond + ", bytesPerSec=" + getBytesPerSecond()
167+
return "ThrottledInputStream[bytesRead=" + getByteCount() + ", maxBytesPerSec=" + maxBytesPerSecond + ", bytesPerSec=" + getBytesPerSecond()
168168
+ ", totalSleepDuration=" + totalSleepDuration + ']';
169169
}
170170
}

0 commit comments

Comments
 (0)