aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/PlayerCommands.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command/PlayerCommands.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command/PlayerCommands.cxx b/src/command/PlayerCommands.cxx
index 7b033368a..f4b4674a0 100644
--- a/src/command/PlayerCommands.cxx
+++ b/src/command/PlayerCommands.cxx
@@ -176,7 +176,9 @@ handle_status(Client &client,
"elapsed: %1.3f\n"
COMMAND_STATUS_BITRATE ": %u\n",
(int)(player_status.elapsed_time + 0.5),
- (int)(player_status.total_time + 0.5),
+ player_status.total_time.IsNegative()
+ ? 0u
+ : unsigned(player_status.total_time.RoundS()),
player_status.elapsed_time,
player_status.bit_rate);