summaryrefslogtreecommitdiff
path: root/methods/http.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-03-31 09:07:12 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-03-31 09:07:12 +0000
commit2c38625920fa67d52ade11fd7d28cdb5373dc31c (patch)
tree7b156366cb6826cc6d141aa373ef6fc0655f53ca /methods/http.h
parent66de63dde68e2cb3a26201a28a0fc8060432acd3 (diff)
* merged the apt--main with the 2004 bwlimit tree
Patches applied: * michael.vogt@canonical.com--2004/apt--bwlimit--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-47 * michael.vogt@canonical.com--2004/apt--bwlimit--0--patch-1 * fist attempt for bwlimit * michael.vogt@canonical.com--2004/apt--bwlimit--0--patch-2 * add a nanosleep, making it less cpu intensive * michael.vogt@canonical.com--2004/apt--bwlimit--0--patch-3 * use SingleInstance when DlLimit is activated * michael.vogt@canonical.com--2004/apt--bwlimit--0--patch-4 * cleanups, no code changes
Diffstat (limited to 'methods/http.h')
-rw-r--r--methods/http.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/methods/http.h b/methods/http.h
index c5a4d0e86..541e2952c 100644
--- a/methods/http.h
+++ b/methods/http.h
@@ -31,6 +31,11 @@ class CircleBuf
unsigned long MaxGet;
struct timeval Start;
+ static unsigned long BwReadLimit;
+ static unsigned long BwTickReadData;
+ static struct timeval BwReadTick;
+ static const unsigned int BW_HZ;
+
unsigned long LeftRead()
{
unsigned long Sz = Size - (InP - OutP);