Skip to content

Commit

Permalink
fix: show correct resource size
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Oct 25, 2024
1 parent 0fb0acb commit 66a1a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/bee/api/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ private static String name(String resourceName) {

private record Resource(RequestType type, String name, String repository, long size, long current) {
Resource(TransferEvent e) {
this(e.getRequestType(), e.getResource().getResourceName(), e.getResource().getRepositoryId(), e.getDataLength(), e
.getTransferredBytes());
this(e.getRequestType(), e.getResource().getResourceName(), e.getResource().getRepositoryId(), e.getResource()
.getContentLength(), e.getTransferredBytes());
}
}

Expand Down

0 comments on commit 66a1a83

Please sign in to comment.