Help and Support
Ask a question, report a problem, request a feature...
<<  Back To Forum

BUG: progress status of folder adds to >100%

by Guest on 2015/07/15 02:07:10 PM    
in a torrent containing folders that have a lot of subfolders and a large number files inside, the status percentage in the Files tab of a torrent's details displays a number bigger than 100%.
might be a problem of accumulating rounding errors, float precision or overflow?

see this screenshot:
http://i.imgur.com/NlbdE0V.png

SYSTEM DETAILS:
debian wheezy, ext4 filesystem, tixati 2.12

EXPECTED:
all percentage values are in range [0..100]

ACTUAL:
percentage values of folders that have at least one level of subfolders occasionally add up to >100%

STEPS TO REPRODUCE:
references to torrents not allowed, so I'll just say it's a torrent with >100k files, total size in order of 100GB, and a directory tree with lots of sub- ad sub-sub folders.

PROPOSED FIX:
easy fix would be something like $value = min($value, 100)
good fix probably needs an improved algorithm for finding an average percentage for all subfolders and files of a folder




This web site is powered by Super Simple Server