If I understand correctly, we're discussing adding a % downloaded column to the client. Is this not already in existence in the "status" column? (note that I'm not using the most recent source...). On the source that I'm playing with, I've separated the old style "status column holds everything" to a bunch of split columns, one of which is percentage.
cyberal wrote:I still don't get this.. how can updating a variable once in a while tak up so much cpu?
let's see, here's the line of code I use to update the percentage column:
Code: Select all
i->columns[COLUMN_PERCENT] = Util::toString((double)d->getPos()*100.0/(double)d->getSize()) + "%";
Quite a bit of calculation just to add a percentage column. Note that this happens on every tick (about every second I think?), and on every upload or download. The processor use may seem slight, but it would add up over any small number of transfers. Example:
Code: Select all
5 uploads, 5 downloads.
tick happens every 1 second.
10 calculations per second.
600 calculations per minute, each of which contains multiple calculations of its own.
36,000 calculations per hour.
unruled wrote:how much time it has done 'x' megs but not how much time is left.
I have a "time left" column in my mod, as it was part of the status column before. I have also added a "size transferred" column which holds size downloaded/uploaded. I can simply compare size transferred to total size (with my eyes) and get an estimate of how much is left via that method.
-Gratch06