Official eMule-Board: Statistics: Total Completed Size - Official eMule-Board

Jump to content


Page 1 of 1

Statistics: Total Completed Size A rare case of fencepost error ;)

#1 User is offline   fox88 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 4973
  • Joined: 13-May 07

Posted 30 August 2008 - 02:28 PM

Minor bug in calculations in PartFile.cpp
Very easy to spot, if queue file(s) into empty Transfers list.
Statistics > Disk Space > Total Competed Size would be equal to the number of queued files.

Gap size is calculated in 5 places, in 4 it is correct, and in the last one someone forgot to add 1;
in the function
void CPartFile::GetLeftToTransferAndAdditionalNeededSpace(uint64 &rui64LeftToTransfer, uint64 &rui64AdditionalNeededSpace) const

It should have been like (line 5657 in 0.49b)
		uint64 uGapSize = cur_gap->end - cur_gap->start + 1;

0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users