|
@@ -465,7 +465,7 @@ public class ProdBatchController extends CommonController {
|
|
|
deviceMonitorRecordDto.setNetworkDelay("0");
|
|
deviceMonitorRecordDto.setNetworkDelay("0");
|
|
|
}else{
|
|
}else{
|
|
|
//是毫秒,得转成秒,小数也要显示,默认支持三位小数
|
|
//是毫秒,得转成秒,小数也要显示,默认支持三位小数
|
|
|
- deviceMonitorRecordDto.setNetworkDelay(String.format("%.3f", delay / 1000.0));
|
|
|
|
|
|
|
+ deviceMonitorRecordDto.setNetworkDelay(delay+"");
|
|
|
}
|
|
}
|
|
|
ChannelHandlerContext deviceNo = DeviceSessionManager.getInstance().getDeviceSession(record.getStr("deviceNo"));
|
|
ChannelHandlerContext deviceNo = DeviceSessionManager.getInstance().getDeviceSession(record.getStr("deviceNo"));
|
|
|
if(deviceNo != null){
|
|
if(deviceNo != null){
|