Commit fe7a44a9 by 刘冲

update version to 1.5.82

make call to public
1 parent 6aa1f9ab
...@@ -12,7 +12,7 @@ import java.util.Map; ...@@ -12,7 +12,7 @@ import java.util.Map;
*/ */
public class CalcGXCSendTime { public class CalcGXCSendTime {
public static String filePath = "/Users/liuchong/Downloads/guoxinsend"; public static String filePath = "/Users/liuchong/Downloads/gxc-send-jc";
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
...@@ -22,6 +22,7 @@ public class CalcGXCSendTime { ...@@ -22,6 +22,7 @@ public class CalcGXCSendTime {
int count5000 = 0; int count5000 = 0;
int countAll = 0; int countAll = 0;
int countError = 0; int countError = 0;
int count10000 = 0;
File file = new File(filePath); File file = new File(filePath);
File[] files = file.listFiles(); File[] files = file.listFiles();
Map<String, Long> timeMap = new HashMap<String, Long>(); Map<String, Long> timeMap = new HashMap<String, Long>();
...@@ -37,7 +38,7 @@ public class CalcGXCSendTime { ...@@ -37,7 +38,7 @@ public class CalcGXCSendTime {
if (info.contains("|ERR|")) { if (info.contains("|ERR|")) {
countAll++; countAll++;
countError++; countError++;
System.out.println("id" + id + " " + time); //System.out.println("id" + id + " " + time);
continue; continue;
} }
long currentTime = sdf.parse(time).getTime(); long currentTime = sdf.parse(time).getTime();
...@@ -57,8 +58,12 @@ public class CalcGXCSendTime { ...@@ -57,8 +58,12 @@ public class CalcGXCSendTime {
} }
if (dis > 5000) { if (dis > 5000) {
count5000++; count5000++;
//System.out.println(id+" "+dis);
} }
if (dis > 10000) {
count10000++;
System.out.println(id + " " + dis + " " + file1.getName());
}
timeMap.remove(id); timeMap.remove(id);
} else { } else {
timeMap.put(id, currentTime); timeMap.put(id, currentTime);
...@@ -68,10 +73,11 @@ public class CalcGXCSendTime { ...@@ -68,10 +73,11 @@ public class CalcGXCSendTime {
} }
System.out.println(timeMap.size()); System.out.println(timeMap.size());
System.out.println("all :" + countAll); System.out.println("all :" + countAll);
System.out.println("<500 :" + count500); System.out.println("小于500 :" + count500);
System.out.println("500-1000 :" + count1000); System.out.println("500-1000 :" + count1000);
System.out.println("1000-2000:" + count2000); System.out.println("1000-2000:" + count2000);
System.out.println(">5000 :" + count5000); System.out.println("大于5000 :" + count5000);
System.out.println("大于10000 :" + count10000);
System.out.println("Error :" + countError); System.out.println("Error :" + countError);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!