summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-07-25 14:24:49 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-07-25 14:24:49 +0000
commitaa643db434e230643e18e454032fb708e0f1848d (patch)
treebee5d949e932aaab2937f0b742f52be6f4895ba0 /apps/gui/gwps-common.c
parent29407cbe801bfdfbe59ad0e40be8fc8ced4ac778 (diff)
downloadrockbox-aa643db434e230643e18e454032fb708e0f1848d.tar.gz
rockbox-aa643db434e230643e18e454032fb708e0f1848d.zip
Oops, forgot to trim down the lines before my previous commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13988 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 62d710af54..9362c84e20 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -851,9 +851,11 @@ static char *get_token_value(struct gui_wps *gwps,
851 case WPS_TOKEN_TRACK_ELAPSED_PERCENT: 851 case WPS_TOKEN_TRACK_ELAPSED_PERCENT:
852 if (intval) 852 if (intval)
853 { 853 {
854 *intval = limit * (id3->elapsed + state->ff_rewind_count) / id3->length + 1; 854 *intval = limit * (id3->elapsed + state->ff_rewind_count)
855 / id3->length + 1;
855 } 856 }
856 snprintf(buf, buf_size, "%d", 100*(id3->elapsed + state->ff_rewind_count) / id3->length); 857 snprintf(buf, buf_size, "%d",
858 100*(id3->elapsed + state->ff_rewind_count) / id3->length);
857 return buf; 859 return buf;
858 860
859 case WPS_TOKEN_METADATA_ARTIST: 861 case WPS_TOKEN_METADATA_ARTIST: