← Back to team overview

linuxdcpp-team team mailing list archive

Re: [Question #124758]: Getting full size of a download

 

Question #124758 on LinuxDC++ changed:
https://answers.launchpad.net/linuxdcpp/+question/124758

    Status: Open => Answered

Razzloss proposed the following answer:
See linux/transfers.cc updateParent_gui, getParams_client and
updateTransfer_gui. The total size of the file is available in the
Transfer object (or not, that might be the segment size. In that case
the size is available in QueueManager when the segment starts). The
current progress is calculated from the Download position of the parent
row (which is updated from QueueManager when each segment starts) plus
the position of each individual active child row (getPos of the transfer
object).

--RZ

-- 
You received this question notification because you are a member of
LinuxDC++ Team, which is an answer contact for LinuxDC++.