Skip to content

Commit cd0b132

Browse files
committed
配置调整
1 parent 8e42006 commit cd0b132

File tree

1 file changed

+10
-4
lines changed
  • library/src/main/java/com/qiniu/android/collect

1 file changed

+10
-4
lines changed

library/src/main/java/com/qiniu/android/collect/Config.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,27 @@ public class Config {
4848
*
4949
* 记录文件大于此值后暂停记录上传信息。
5050
*/
51-
public static int maxRecordFileSize = 4 * 512 * 1024;
51+
public static int maxRecordFileSize = 1024 * 1024;
5252

5353
/**
5454
* 记录文件大于 uploadThreshold 后才可能触发上传,单位:字节。
55+
*
56+
* 以 200,CwIAAF4znMnpno0U,up.qiniu.com,183.131.7.18,80,383.0,1481014578,262144 为例,
57+
* 100 条,约 7400Byte ;50 条,约 3700; 1024 约 13.8 条
58+
*
59+
* chunkSize = 256 * 1024;putThreshold = 512 * 1024
60+
* 分片上传, 1M,最好情况下 5 个请求;10M,最好情况下 41 个请求
5561
*/
56-
public static int uploadThreshold = 128 * 1024;
62+
public static int uploadThreshold = 4 * 1024;
5763

5864
/**
5965
* 每次上传最小时间间隔.单位:分钟
6066
*/
61-
public static int interval = 3;
67+
public static int interval = 5;
6268

6369

6470
/**
6571
* 上传信息收集文件的地址
6672
* */
67-
public static String serverURL = "http://115.236.16.114:16536/log";
73+
public static String serverURL = "http://uplog.qiniukodo.com/log";
6874
}

0 commit comments

Comments
 (0)