Skip to content

Commit

Permalink
editoast: fix ts2 request payload for core
Browse files Browse the repository at this point in the history
  • Loading branch information
flomonster committed Apr 18, 2024
1 parent 26a4209 commit b0b88cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions editoast/src/core/v2/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ impl From<RollingStockModel> for PhysicRollingStock {
pub struct SimulationScheduleItem {
/// Position on the path in mm
pub path_offset: u64,
/// Time in s since the departure of the train
/// Time in ms since the departure of the train
pub arrival: Option<u64>,
/// Duration of the stop in s
/// Duration of the stop in ms
pub stop_for: Option<u64>,
}

Expand Down
4 changes: 2 additions & 2 deletions editoast/src/views/v2/train_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,11 @@ async fn build_simulation_request(
arrival: schedule_item
.arrival
.as_ref()
.map(|t| t.num_seconds() as u64),
.map(|t| t.num_milliseconds() as u64),
stop_for: schedule_item
.stop_for
.as_ref()
.map(|t| t.num_seconds() as u64),
.map(|t| t.num_milliseconds() as u64),
})
.collect();

Expand Down

0 comments on commit b0b88cf

Please sign in to comment.