Skip to content

Commit cea603e

Browse files
author
YangSen-qn
committed
optimize bytesSend func
1 parent dd195c3 commit cea603e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/qiniu/android/http/metrics/UploadSingleRequestMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public long totalBytes(){
8787
return (headerLength + bodyLength);
8888
}
8989
public Long bytesSend(){
90-
long totalBytes = totalBytes().longValue();
90+
long totalBytes = totalBytes();
9191
long bytesSend = countOfRequestHeaderBytesSent + countOfRequestBodyBytesSent;
9292
if (bytesSend > totalBytes){
9393
bytesSend = totalBytes;

0 commit comments

Comments
 (0)