mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
possibly fix the issue discusssed in http://forum.transmissionbt.com/viewtopic.php?p=22725
This commit is contained in:
parent
2f3eba4b01
commit
3b27e2d2af
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ tr_cpHaveTotal( const tr_completion * cp )
|
||||||
void
|
void
|
||||||
tr_cpGetAmountDone( const tr_completion * cp, float * tab, int tabCount )
|
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;
|
tr_block_index_t block_i = 0;
|
||||||
int tab_i;
|
int tab_i;
|
||||||
for( tab_i=0; tab_i<tabCount; ++tab_i ) {
|
for( tab_i=0; tab_i<tabCount; ++tab_i ) {
|
||||||
|
|
Loading…
Reference in a new issue