快传 传送最低时间设为1秒

This commit is contained in:
kehaoyuan
2017-11-22 15:07:29 +08:00
parent 89e05d1a29
commit 165059ca2d
2 changed files with 3 additions and 3 deletions

View File

@ -154,8 +154,8 @@ public class DialogUtils {
sizeName = df.format(size) + "MB";
}
if (sendTime == 0) {
sendTime = 1;
if (sendTime < 1000) { // 最少设置发送时间为1s为了简易计算
sendTime = 1000;
}
int i = (filesSize / 1024) / (sendTime / 1000);