1、有设备长时间无d3f0但是有数据上来,增加device的统计
This commit is contained in:
parent
db9d27b3a0
commit
21a6d2a8df
@ -74,6 +74,7 @@ public class Device {
|
|||||||
private BigDecimal used;
|
private BigDecimal used;
|
||||||
|
|
||||||
LocalDateTime lastRxTime;
|
LocalDateTime lastRxTime;
|
||||||
|
LocalDateTime lastD3f0f2Time;
|
||||||
LocalDateTime lastD3f2Time;
|
LocalDateTime lastD3f2Time;
|
||||||
short noFixedAndFloatResult=0;
|
short noFixedAndFloatResult=0;
|
||||||
|
|
||||||
@ -89,13 +90,14 @@ public class Device {
|
|||||||
short abnormalD341Num = 0;
|
short abnormalD341Num = 0;
|
||||||
byte cfgChannelType = CHANNEL_TYPE_TCP; // 0:TCP;1:DUP
|
byte cfgChannelType = CHANNEL_TYPE_TCP; // 0:TCP;1:DUP
|
||||||
byte dataChannelType = CHANNEL_TYPE_UDP; // 0:TCP;1:DUP
|
byte dataChannelType = CHANNEL_TYPE_UDP; // 0:TCP;1:DUP
|
||||||
|
int lasQuality = 0;
|
||||||
|
|
||||||
public void updateRx(int head, int bytes,int count){
|
public void updateRx(int head, int bytes,int count){
|
||||||
lastRxHead = head;
|
lastRxHead = head;
|
||||||
|
|
||||||
switch (head){
|
switch (head){
|
||||||
case 0xd3f0:
|
case 0xd3f0:
|
||||||
//lastD3f0f2Time = LocalDateTime.now();
|
lastD3f0f2Time = LocalDateTime.now();
|
||||||
//clearStat();
|
//clearStat();
|
||||||
break;
|
break;
|
||||||
case 0xd3f2:
|
case 0xd3f2:
|
||||||
@ -128,6 +130,7 @@ public class Device {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateCalcQuality(int quality){
|
public void updateCalcQuality(int quality){
|
||||||
|
lasQuality = quality;
|
||||||
if(b562AsCalc) {
|
if(b562AsCalc) {
|
||||||
if (quality == UBXUtil.FIX_RESULT) fixedNum++;
|
if (quality == UBXUtil.FIX_RESULT) fixedNum++;
|
||||||
else if (quality == UBXUtil.FLOAT_RESULT) floatNum++;
|
else if (quality == UBXUtil.FLOAT_RESULT) floatNum++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user