diff options
-rw-r--r-- | apps/gui/gwps-common.c | 6 |
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: |