aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-06-25 08:37:34 +0200
committerMax Kellermann <max@duempel.org>2009-06-25 08:37:34 +0200
commitce072b89d24aba8b54da5958ef73b1864ad003ae (patch)
tree5560e2e7b6f0953f3a28133a6f7b2546a0da34df /src
parent4ffd9bce5a9a12a03ecaecac7c0861e5f692d9e3 (diff)
downloadmpd-ce072b89d24aba8b54da5958ef73b1864ad003ae.tar.gz
mpd-ce072b89d24aba8b54da5958ef73b1864ad003ae.tar.xz
mpd-ce072b89d24aba8b54da5958ef73b1864ad003ae.zip
command: added new "status" line with more precise "elapsed time"
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index d30b63594..5b2973d3e 100644
--- a/src/command.c
+++ b/src/command.c
@@ -501,9 +501,11 @@ handle_status(struct client *client,
const struct audio_format *af = player_get_audio_format();
client_printf(client,
COMMAND_STATUS_TIME ": %i:%i\n"
+ "elapsed: %1.3f\n"
COMMAND_STATUS_BITRATE ": %li\n"
COMMAND_STATUS_AUDIO ": %u:%u:%u\n",
getPlayerElapsedTime(), getPlayerTotalTime(),
+ pc.elapsed_time,
getPlayerBitRate(),
af->sample_rate, af->bits, af->channels);
}