File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ impl From<RollingStockModel> for PhysicRollingStock {
8484pub 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments