command/player, ...: use decimal notation
During the libfmt migration, I converted "%1.3f" to just "{:1.3}" without the "f" suffix, but libfmt defaults to scientific notation, which can break some MPD clients. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1291
This commit is contained in:
@@ -60,7 +60,7 @@ tag_print(Response &r, const Tag &tag) noexcept
|
||||
{
|
||||
if (!tag.duration.IsNegative())
|
||||
r.Fmt(FMT_STRING("Time: {}\n"
|
||||
"duration: {:1.3}\n"),
|
||||
"duration: {:1.3f}\n"),
|
||||
tag.duration.RoundS(),
|
||||
tag.duration.ToDoubleS());
|
||||
|
||||
|
Reference in New Issue
Block a user