提交 6fbffcbd 编写于 作者: wu-sheng's avatar wu-sheng

Remove duplicate timeBucket.

上级 8a892219
...@@ -74,10 +74,9 @@ public class EndpointAvgIndicator extends AvgIndicator { ...@@ -74,10 +74,9 @@ public class EndpointAvgIndicator extends AvgIndicator {
@Override public RemoteData.Builder serialize() { @Override public RemoteData.Builder serialize() {
RemoteData.Builder remoteBuilder = RemoteData.newBuilder(); RemoteData.Builder remoteBuilder = RemoteData.newBuilder();
remoteBuilder.setDataLongs(0, getTimeBucket()); remoteBuilder.setDataLongs(0, getSummation());
remoteBuilder.setDataLongs(1, getSummation()); remoteBuilder.setDataLongs(1, getValue());
remoteBuilder.setDataLongs(2, getValue()); remoteBuilder.setDataLongs(2, getTimeBucket());
remoteBuilder.setDataLongs(3, getTimeBucket());
remoteBuilder.setDataIntegers(0, getId()); remoteBuilder.setDataIntegers(0, getId());
...@@ -90,10 +89,9 @@ public class EndpointAvgIndicator extends AvgIndicator { ...@@ -90,10 +89,9 @@ public class EndpointAvgIndicator extends AvgIndicator {
@Override public void deserialize(RemoteData remoteData) { @Override public void deserialize(RemoteData remoteData) {
setTimeBucket(remoteData.getDataLongs(0)); setSummation(remoteData.getDataLongs(0));
setSummation(remoteData.getDataLongs(1)); setValue(remoteData.getDataLongs(1));
setValue(remoteData.getDataLongs(2)); setTimeBucket(remoteData.getDataLongs(2));
setTimeBucket(remoteData.getDataLongs(3));
setId(remoteData.getDataIntegers(0)); setId(remoteData.getDataIntegers(0));
......
...@@ -74,10 +74,9 @@ public class EndpointPercentIndicator extends PercentIndicator { ...@@ -74,10 +74,9 @@ public class EndpointPercentIndicator extends PercentIndicator {
@Override public RemoteData.Builder serialize() { @Override public RemoteData.Builder serialize() {
RemoteData.Builder remoteBuilder = RemoteData.newBuilder(); RemoteData.Builder remoteBuilder = RemoteData.newBuilder();
remoteBuilder.setDataLongs(0, getTimeBucket()); remoteBuilder.setDataLongs(0, getTotal());
remoteBuilder.setDataLongs(1, getTotal()); remoteBuilder.setDataLongs(1, getMatch());
remoteBuilder.setDataLongs(2, getMatch()); remoteBuilder.setDataLongs(2, getTimeBucket());
remoteBuilder.setDataLongs(3, getTimeBucket());
remoteBuilder.setDataIntegers(0, getId()); remoteBuilder.setDataIntegers(0, getId());
...@@ -90,10 +89,9 @@ public class EndpointPercentIndicator extends PercentIndicator { ...@@ -90,10 +89,9 @@ public class EndpointPercentIndicator extends PercentIndicator {
@Override public void deserialize(RemoteData remoteData) { @Override public void deserialize(RemoteData remoteData) {
setTimeBucket(remoteData.getDataLongs(0)); setTotal(remoteData.getDataLongs(0));
setTotal(remoteData.getDataLongs(1)); setMatch(remoteData.getDataLongs(1));
setMatch(remoteData.getDataLongs(2)); setTimeBucket(remoteData.getDataLongs(2));
setTimeBucket(remoteData.getDataLongs(3));
setId(remoteData.getDataIntegers(0)); setId(remoteData.getDataIntegers(0));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册