From 75a89c59838ff764b55ba3ce359d59d031446b3d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 13:07:38 +0200 Subject: PlayerThread: use SongTime for elapsed_time --- src/command/PlayerCommands.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command') diff --git a/src/command/PlayerCommands.cxx b/src/command/PlayerCommands.cxx index f4b4674a0..cd7f42289 100644 --- a/src/command/PlayerCommands.cxx +++ b/src/command/PlayerCommands.cxx @@ -175,11 +175,11 @@ handle_status(Client &client, COMMAND_STATUS_TIME ": %i:%i\n" "elapsed: %1.3f\n" COMMAND_STATUS_BITRATE ": %u\n", - (int)(player_status.elapsed_time + 0.5), + player_status.elapsed_time.RoundS(), player_status.total_time.IsNegative() ? 0u : unsigned(player_status.total_time.RoundS()), - player_status.elapsed_time, + player_status.elapsed_time.ToDoubleS(), player_status.bit_rate); if (player_status.audio_format.IsDefined()) { -- cgit v1.2.3