diff options
author | Max Kellermann <max@duempel.org> | 2014-11-25 17:46:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-25 17:46:43 +0100 |
commit | 70b5a81a290e5f483e93c59413d5bd29d2047063 (patch) | |
tree | 934934174959613ad3cb5f04a3ecacde3c29319c /src/SongPrint.cxx | |
parent | 83fd822e8b9a4dd1132a2cec324c4171d8ca2946 (diff) | |
download | mpd-70b5a81a290e5f483e93c59413d5bd29d2047063.tar.gz mpd-70b5a81a290e5f483e93c59413d5bd29d2047063.tar.xz mpd-70b5a81a290e5f483e93c59413d5bd29d2047063.zip |
{Tag,Song}Print, PlayerCommands: report song duration with milliseconds precision
Diffstat (limited to 'src/SongPrint.cxx')
-rw-r--r-- | src/SongPrint.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SongPrint.cxx b/src/SongPrint.cxx index 05d462b6d..07b9458ca 100644 --- a/src/SongPrint.cxx +++ b/src/SongPrint.cxx @@ -122,5 +122,8 @@ song_print_info(Client &client, const DetachedSong &song, bool base) const auto duration = song.GetDuration(); if (!duration.IsNegative()) - client_printf(client, "Time: %u\n", duration.RoundS()); + client_printf(client, "Time: %i\n" + "duration: %1.3f\n", + duration.RoundS(), + duration.ToDoubleS()); } |