diff --git a/libtransmission/completion.c b/libtransmission/completion.c index d44d3c769..1a346500d 100644 --- a/libtransmission/completion.c +++ b/libtransmission/completion.c @@ -304,7 +304,7 @@ tr_cpHaveTotal( const tr_completion * cp ) void tr_cpGetAmountDone( const tr_completion * cp, float * tab, int tabCount ) { - const int tabSpan = tabCount / cp->tor->blockCount; + const int tabSpan = cp->tor->blockCount / tabCount; tr_block_index_t block_i = 0; int tab_i; for( tab_i=0; tab_i