This commit is contained in:
parent
ff3fbce1f3
commit
5797fa6c76
|
|
@ -213,12 +213,13 @@ public class BufferDeviceImpl implements IBufferDeviceService
|
|||
// 飞行时长 - 从 total_flight_time 获取秒数并转换为天
|
||||
telemetryMap.get(DeviceTelemetry.Total_Flight_Time)
|
||||
.ifPresent(telemetryValue -> {
|
||||
Integer seconds = telemetryValue.getValue();
|
||||
if (seconds != null) {
|
||||
// 将秒转换为天:秒 / (60 * 60 * 24)
|
||||
Integer days = seconds / (60 * 60 * 24);
|
||||
dto.setFlightDuration(days);
|
||||
}
|
||||
dto.setFlightDuration(telemetryValue.getValue());
|
||||
// Integer seconds = telemetryValue.getValue();
|
||||
// if (seconds != null) {
|
||||
// // 将秒转换为天:秒 / (60 * 60 * 24)
|
||||
// Integer days = seconds / (60 * 60 * 24);
|
||||
// dto.setFlightDuration(days);
|
||||
// }
|
||||
});
|
||||
|
||||
return dto;
|
||||
|
|
|
|||
Loading…
Reference in New Issue