Skip to content

Commit 1cfc909

Browse files
author
JemyCheung
committed
long bytes
1 parent 7a55263 commit 1cfc909

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/src/main/java/com/qiniu/android/storage/ResumeUploader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private void makeBlock(String upHost, long offset, int blockSize, int chunkSize,
144144
logHandler.send("up_type", "mkblk");
145145
logHandler.send("tid", (long) android.os.Process.myTid());
146146
logHandler.send("file_offset", offset);
147-
logHandler.send("bytes_total", chunkSize);
147+
logHandler.send("bytes_total", (long) chunkSize);
148148
String path = format(Locale.ENGLISH, "/mkblk/%d", blockSize);
149149
try {
150150
file.seek(offset);
@@ -165,7 +165,7 @@ private void putChunk(String upHost, long offset, int chunkSize, String context,
165165
logHandler.send("up_type", "bput");
166166
logHandler.send("tid", (long) android.os.Process.myTid());
167167
logHandler.send("file_offset", offset);
168-
logHandler.send("bytes_total", chunkSize);
168+
logHandler.send("bytes_total", (long) chunkSize);
169169
int chunkOffset = (int) (offset % Configuration.BLOCK_SIZE);
170170
String path = format(Locale.ENGLISH, "/bput/%s/%d", context, chunkOffset);
171171
try {
@@ -209,7 +209,7 @@ private void makeFile(String upHost, CompletionHandler _completionHandler, UpCan
209209
byte[] data = bodyStr.getBytes();
210210
String postUrl = String.format("%s%s", upHost, path);
211211
logHandler.send("file_offset", 0);
212-
logHandler.send("bytes_total", data.length);
212+
logHandler.send("bytes_total", (long) data.length);
213213
post(logHandler, postUrl, data, 0, data.length, null, _completionHandler, c);
214214
}
215215

library/src/main/java/com/qiniu/android/storage/ResumeUploaderFast.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private void makeFile(String upHost, CompletionHandler _completionHandler, UpCan
320320
String bodyStr = StringUtils.join(contexts, ",");
321321
byte[] data = bodyStr.getBytes();
322322
String postUrl = String.format("%s%s", upHost, path);
323-
logHandler.send("bytes_total", data.length);
323+
logHandler.send("bytes_total", (long) data.length);
324324
post(logHandler, postUrl, data, 0, data.length, null, _completionHandler, c);
325325
}
326326

0 commit comments

Comments
 (0)