Procházet zdrojové kódy

Sanity checks.

master
Richard Nyberg před 19 roky
rodič
revize
bdb91bc49b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. +2
    -0
      btpd/net.c

+ 2
- 0
btpd/net.c Zobrazit soubor

@@ -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;



Načítá se…
Zrušit
Uložit