Skip to content
Browse files

parser for rttdev

  • Loading branch information...
1 parent 68e3450 commit 5458f6fb7e16c4b84e5af9d5d06d494db6897f3f @quietbamboo committed Nov 2, 2011
Showing with 12 additions and 2 deletions.
  1. +2 −1 4gtest/src/com/mobiperf/lte/RTT.java
  2. +10 −1 server/src/common/Util.java
View
3 4gtest/src/com/mobiperf/lte/RTT.java
@@ -55,7 +55,8 @@ public static void test(Service service){
(new Report()).sendReport("MLAB_RTT:<median:" + Utilities.getMedian(rtts) +
"><max:" + Utilities.getMax(rtts) +
- "><min:" +Utilities.getMin(rtts) +
+ "><min:" +Utilities.getMin(rtts) +
+ "><stddev:" +Utilities.getStandardDeviation(rtts) +
"><sample:" + rtts.length + ">;");
}
View
11 server/src/common/Util.java
@@ -323,6 +323,12 @@ else if(line.startsWith("REA:") || line.startsWith("REACH:")){
if(line.contains("<" + field + ":")){
Util.extractFieldToMysql(type_string, id_string, rid_string, "", line, field);
}
+
+ //only for RTT
+ field = "stddev";
+ if(line.contains("<" + field + ":")){
+ Util.extractFieldToMysql(type_string, id_string, rid_string, "", line, field);
+ }
}
//else{
@@ -424,7 +430,10 @@ else if(value.endsWith("W"))
//MLab related
if(line.startsWith("MLAB_RTT:")){
- field = "RTT";
+ if(field.equals("median"))
+ field = "RTT";
+ else if(field.equals("stddev"))
+ field = "UpRTTDev";
}
if(line.startsWith("MLAB_THROUGHPUT_DOWN:")){
field = "DownTp";

0 comments on commit 5458f6f

Please sign in to comment.
Something went wrong with that request. Please try again.