summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/cache2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/cache2.c b/libmpdemux/cache2.c
index 6b44598dd0..6fbf19c5f9 100644
--- a/libmpdemux/cache2.c
+++ b/libmpdemux/cache2.c
@@ -110,7 +110,7 @@ int cache_read(cache_vars_t* s,unsigned char* buf,int size){
total+=len;
}
- cache_fill_status=100*(s->max_filepos-s->read_filepos)/s->buffer_size;
+ cache_fill_status=(s->max_filepos-s->read_filepos)/(s->buffer_size / 100);
return total;
}