aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-15 16:16:19 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-15 16:16:19 +0000
commit3ea87a52c60e2586346497a1a5e4228fba6bf9d7 (patch)
treee8595c69c07d98d30e177a1d3178db1fa7f29052
parent0b7d9b2dec6c5935c2147b7cb94022bdef8cfa38 (diff)
downloadmpd-3ea87a52c60e2586346497a1a5e4228fba6bf9d7.tar.gz
mpd-3ea87a52c60e2586346497a1a5e4228fba6bf9d7.tar.xz
mpd-3ea87a52c60e2586346497a1a5e4228fba6bf9d7.zip
round crossfade for status
git-svn-id: https://svn.musicpd.org/mpd/trunk@775 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 5ad828657..9a7072c43 100644
--- a/src/command.c
+++ b/src/command.c
@@ -197,7 +197,9 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength,
myfprintf(fp,"%s: %i\n",COMMAND_STATUS_RANDOM,getPlaylistRandomStatus());
myfprintf(fp,"%s: %li\n",COMMAND_STATUS_PLAYLIST,getPlaylistVersion());
myfprintf(fp,"%s: %i\n",COMMAND_STATUS_PLAYLIST_LENGTH,getPlaylistLength());
- myfprintf(fp,"%s: %i\n",COMMAND_STATUS_CROSSFADE,(int)getPlayerCrossFade());
+ myfprintf(fp,"%s: %i\n",COMMAND_STATUS_CROSSFADE,
+ (int)(getPlayerCrossFade()+0.5));
+
myfprintf(fp,"%s: %s\n",COMMAND_STATUS_STATE,state);
if(getPlayerState()!=PLAYER_STATE_STOP) {