Maybe a feature/enhancement - Shaped download/upload speeds

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Posts: 1
Joined: 2005-01-07 08:54

Maybe a feature/enhancement - Shaped download/upload speeds

Post by tnn » 2005-01-07 09:13


I'll first thank you for a wonderful program!

I have been a DC and DC++ user for almost 2 years now, and love the style of this type of program..

One think I could comment on, was the way global speed are meashused.. I havn't looked deep under the code, but I figure it reads bits transfered sinse last read, one time a second..

I'm using the feature 'Stop new downloads if speed over xx'
But my download speed are not quite acc., it swings about 5-10 KiB/sec.. So I'm think if it was possible to make it a avange speed of 3, 4 or 5 seconds.. calculated each second.

I'm not a C++ code'r, but I'll try to demostrade as good as I can:

Code: Select all

function read_down_byte () {
return bytes_since_last_read;

$array_bytes = array_push($array_bytes, bytes_since_last_read());

$bytes_sec = array_sum($array_bytes) / 5;
I hope it's readable :)

Thanks for your time.

DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46

Post by GargoyleMT » 2005-01-07 11:33

Bugzilla Bug 422 Inaccurate Upload Speed Reading/Monitoring

I haven't looked at the reporting of download speeds, but the reporting of upload speeds is more complicated because DC++ buffers them - that's really what one of the the U: values in the status bar means.