From 0bfe7438ec2ebb68c24c76cb724d9fb7722bf565 Mon Sep 17 00:00:00 2001 From: chmanie Date: Fri, 9 Jun 2023 03:16:51 +0200 Subject: [PATCH] Divide completion by 1000 in the tui Ideally we should make all these durations consistent (see https://git.cluster.gay/clusterfuck/crabidy/issues/6) --- cbd-tui/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbd-tui/src/main.rs b/cbd-tui/src/main.rs index 1a0ceaa..a6a382e 100644 --- a/cbd-tui/src/main.rs +++ b/cbd-tui/src/main.rs @@ -345,7 +345,7 @@ impl NowPlayingView { self.play_state = play_state; } 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); } fn update_track(&mut self, active: Option) {