Divide completion by 1000 in the tui

Ideally we should make all these durations consistent (see #6)
This commit is contained in:
chmanie 2023-06-09 03:16:51 +02:00
parent d782adb506
commit 0bfe7438ec
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ impl NowPlayingView {
self.play_state = play_state; self.play_state = play_state;
} }
fn update_position(&mut self, pos: TrackPosition) { fn update_position(&mut self, pos: TrackPosition) {
self.completion = Some(pos.position); self.completion = Some(pos.position / 1000);
self.elapsed = Some(pos.position as f64 / pos.duration as f64); self.elapsed = Some(pos.position as f64 / pos.duration as f64);
} }
fn update_track(&mut self, active: Option<Track>) { fn update_track(&mut self, active: Option<Track>) {