Sure that would work, if you new what the ratio is. But, where do you get the ratio from? You just make it up or do you add a new query for each torrent, like I have seen a dozen times in code.
Please show your code, don't be afraid to show your awesomeness and show us want to be coders just how we are doing things the wrong way. I would gladly thank you profusely if you could just show me the error in my code.
Bump: My code actually shows whether the user has snatched the torrent.
and it only uses 2 queries to get the data.