Skip to content

Commit

Permalink
fix: read stats add 1, not add the value of byteRead (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
happybin92 authored Mar 30, 2023
1 parent 32da6de commit e294bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/hadoop/fs/CosNFSInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public int read() throws IOException {
this.position++;
this.partRemaining--;
if (null != this.statistics) {
this.statistics.incrementBytesRead(byteRead);
this.statistics.incrementBytesRead(1);
}
}

Expand Down

0 comments on commit e294bf8

Please sign in to comment.