| > I'm trying to make use of the bandwidth limiter (-An
> option where n = # KB/sec). I've got a DSL
> connection, and it seems that this function does not
> have any effect on the transfer rate ...
> I've also tried -A200. I've also tried it at the end
> of the command sequence such as
> httrack -g filename -O directory -A200
The position of options is not important
> Is there some reason that this function should not
> work with DSL? Does the -A option just make the
Well, the bw limiter is really BASIC and therefore not
very efficient:
void HTS_TOTAL_RECV_CHECK(int var) {
if (HTS_STAT.HTS_TOTAL_RECV_STATE) {
if (HTS_STAT.HTS_TOTAL_RECV_STATE==3) {
var = min(var,32);
Sleep(250);
} else if (HTS_STAT.HTS_TOTAL_RECV_STATE==2) {
var = min(var,256);
Sleep(100);
} else {
var/=2;
if (var<=0) var=1;
Sleep(50);
}
}
}
This small routines is the current bw limiter, you can
easily gues that this isn't sufficient for fast pipes.
I will improve this soon, by using the realtime
bandwidth estimation, and by using a more accurate
system!
| |