Browse Source

Sanity checks.

master
Richard Nyberg 20 years ago
parent
commit
bdb91bc49b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      btpd/net.c

+ 2
- 0
btpd/net.c View File

@@ -30,6 +30,7 @@ net_bw_read_cb(int sd, short type, void *arg)
struct bwlim *bw = arg; struct bwlim *bw = arg;


btpd.ibw_left += bw->count; btpd.ibw_left += bw->count;
assert(btpd.ibw_left <= btpd.ibwlim);


unsigned long count = 0; unsigned long count = 0;


@@ -79,6 +80,7 @@ net_bw_write_cb(int sd, short type, void *arg)
struct bwlim *bw = arg; struct bwlim *bw = arg;


btpd.obw_left += bw->count; btpd.obw_left += bw->count;
assert(btpd.obw_left <= btpd.obwlim);


unsigned long count = 0; unsigned long count = 0;




||||||
x
 
000:0
Loading…
Cancel
Save