Skip to content

Commit b0b88cf

Browse files
committed
editoast: fix ts2 request payload for core
1 parent 26a4209 commit b0b88cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

editoast/src/core/v2/simulation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ impl From<RollingStockModel> for PhysicRollingStock {
8484
pub struct SimulationScheduleItem {
8585
/// Position on the path in mm
8686
pub path_offset: u64,
87-
/// Time in s since the departure of the train
87+
/// Time in ms since the departure of the train
8888
pub arrival: Option<u64>,
89-
/// Duration of the stop in s
89+
/// Duration of the stop in ms
9090
pub stop_for: Option<u64>,
9191
}
9292

editoast/src/views/v2/train_schedule.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,11 +557,11 @@ async fn build_simulation_request(
557557
arrival: schedule_item
558558
.arrival
559559
.as_ref()
560-
.map(|t| t.num_seconds() as u64),
560+
.map(|t| t.num_milliseconds() as u64),
561561
stop_for: schedule_item
562562
.stop_for
563563
.as_ref()
564-
.map(|t| t.num_seconds() as u64),
564+
.map(|t| t.num_milliseconds() as u64),
565565
})
566566
.collect();
567567

0 commit comments

Comments
 (0)