Fixed bug in calculation of shareRatio and amountUploaded.

Torrent Simulation is now stable and realistic. :)