|
|
|
@ -207,6 +207,8 @@ public class AppMaster {
|
|
|
|
|
long startTime = now.getTime() / 1000;
|
|
|
|
|
long endTime = startTime + 86400 - 1;
|
|
|
|
|
|
|
|
|
|
String startTimeStr = Integer.toString(now.getYear()) + (now.getMonth() < 10 ? "0" : "") + Integer.toString(now.getMonth()) + (now.getDate() < 10 ? "0" : "") + Integer.toString(now.getDate());
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
if (masterUrl.indexOf('?') != -1) {
|
|
|
|
|
masterUrl += "&" + MicroPhotoContext.MASTER_URL_CMDID + "=" + URLEncoder.encode(mCmdid, "UTF-8");
|
|
|
|
@ -221,6 +223,7 @@ public class AppMaster {
|
|
|
|
|
if (mBundleWithMpApp) {
|
|
|
|
|
postParams.add(new Pair<String, String>("bundled", "1"));
|
|
|
|
|
}
|
|
|
|
|
postParams.add(new Pair<String, String>("reportTime", Long.toString(startTime)));
|
|
|
|
|
postParams.add(new Pair<String, String>("bootTime", Long.toString(getBootTime())));
|
|
|
|
|
postParams.add(new Pair<String, String>("i1Version", mService.getMpAppVersion()));
|
|
|
|
|
postParams.add(new Pair<String, String>("oid", mService.getSerialNo()));
|
|
|
|
@ -328,6 +331,8 @@ public class AppMaster {
|
|
|
|
|
|
|
|
|
|
private void buildStats(long startTime, List<Pair<String, String>> stats) {
|
|
|
|
|
|
|
|
|
|
mService.logger.info("Build Stats: " + Long.toString(startTime));
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
/*
|
|
|
|
|
struct MP_STATS
|
|
|
|
@ -356,10 +361,15 @@ public class AppMaster {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String msg = " hb=" + Integer.toString(items[0]) + "/" + Integer.toString(items[1]) +
|
|
|
|
|
" photos=" + Integer.toString(items[2]) + "/" + Integer.toString(items[3]) + "/" + Integer.toString(items[7]);
|
|
|
|
|
|
|
|
|
|
mService.logger.info("Build Stats: " + Long.toString(startTime) + msg);
|
|
|
|
|
|
|
|
|
|
stats.add(new Pair<String, String>("numberOfHb", Integer.toString(items[0])));
|
|
|
|
|
stats.add(new Pair<String, String>("numberOfHbAck", Integer.toString(items[1])));
|
|
|
|
|
|
|
|
|
|
stats.add(new Pair<String, String>("recv", Integer.toString(items[2])));
|
|
|
|
|
stats.add(new Pair<String, String>("scheduled", Integer.toString(items[2])));
|
|
|
|
|
stats.add(new Pair<String, String>("photoTimes", Integer.toString(items[3])));
|
|
|
|
|
stats.add(new Pair<String, String>("success", Integer.toString(items[4])));
|
|
|
|
|
stats.add(new Pair<String, String>("failure", Integer.toString(items[5])));
|
|
|
|
|