|  | @@ -452,8 +452,9 @@ public class IotBoardServiceImpl implements IotBoardService {
 | 
											
												
													
														|  |          final List<IotDvrDisk> dvrDiskList = iotDvrDiskMapper.selectDiskCount(org.getPath());
 |  |          final List<IotDvrDisk> dvrDiskList = iotDvrDiskMapper.selectDiskCount(org.getPath());
 | 
											
												
													
														|  |          if (ObjectUtil.isEmpty(dvrDiskList)) {
 |  |          if (ObjectUtil.isEmpty(dvrDiskList)) {
 | 
											
												
													
														|  |              videoInspection.setHardDiskExceptionRate("-");
 |  |              videoInspection.setHardDiskExceptionRate("-");
 | 
											
												
													
														|  | 
 |  | +        }else {
 | 
											
												
													
														|  | 
 |  | +            final long count1 = dvrDiskList.stream().filter(d -> ObjectUtil.equal(d.getState(), 0)).count();
 | 
											
												
													
														|  | 
 |  | +            videoInspection.setHardDiskExceptionRate(String.format("%.2f", ((dvrDiskList.size() - count1) * 100.0 / dvrDiskList.size())) + "%");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        final long count1 = dvrDiskList.stream().filter(d -> ObjectUtil.equal(d.getState(), 0)).count();
 |  | 
 | 
											
												
													
														|  | -        videoInspection.setHardDiskExceptionRate(String.format("%.2f", ((dvrDiskList.size() - count1) * 100.0 / dvrDiskList.size())) + "%");
 |  | 
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  }
 |  |  }
 |