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());
unset($array_bytes[5]);
$bytes_sec = array_sum($array_bytes) / 5;
Thanks for your time.
tnn