From 3b27e2d2afa3c776e131c9ba4c548dd1001b5370 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 27 Apr 2008 06:44:39 +0000 Subject: [PATCH] possibly fix the issue discusssed in http://forum.transmissionbt.com/viewtopic.php?p=22725 --- libtransmission/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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