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