aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/PlayerCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-29 13:07:38 +0200
committerMax Kellermann <max@duempel.org>2014-08-29 13:20:58 +0200
commit75a89c59838ff764b55ba3ce359d59d031446b3d (patch)
tree0aa5187ec74f592669133b2fd266c0b40b3a1611 /src/command/PlayerCommands.cxx
parent22899686346088a536be11e0c6a68700d4a237a4 (diff)
downloadmpd-75a89c59838ff764b55ba3ce359d59d031446b3d.tar.gz
mpd-75a89c59838ff764b55ba3ce359d59d031446b3d.tar.xz
mpd-75a89c59838ff764b55ba3ce359d59d031446b3d.zip
PlayerThread: use SongTime for elapsed_time
Diffstat (limited to 'src/command/PlayerCommands.cxx')
-rw-r--r--src/command/PlayerCommands.cxx4
1 files changed, 2 insertions, 2 deletions
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()) {