Further cleanups in dcc_glist()

This now calculates a 'pcomplete' value for proportion of transfer complete (0.0 to 1.0).
From this we can calculate most other things easily - percent complete, ETA, and the size
of the completion bars.

User-visible change is that the DCC_BAR_TYPE 1 bar now matches the % complete for the RESUMEd
file case.
This commit is contained in:
Kevin Easton
2016-10-27 00:23:35 +11:00
parent ed12420755
commit 3cba15f6b4
2 changed files with 43 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
[Changes 1.2.2]
* Set completion bar for /SET DCC_BAR_TYPE 1 to empty rather than full for
zero filesize files. (caf)
* Improve completion bar for /SET DCC_BAR_TYPE 1 so that it always matches
the completion percentage. (caf)
* Correctly align formatting of /DCC LIST line for /SET DCC_BAR_TYPE 1. (caf)