Sfoglia il codice sorgente

Sanity checks.

master
Richard Nyberg 19 anni fa
parent
commit
bdb91bc49b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      btpd/net.c

+ 2
- 0
btpd/net.c Vedi File

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

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

unsigned long count = 0;

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

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

unsigned long count = 0;



Loading…
Annulla
Salva