浏览代码

Sanity checks.

master
Richard Nyberg 19 年前
父节点
当前提交
bdb91bc49b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      btpd/net.c

+ 2
- 0
btpd/net.c 查看文件

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



正在加载...
取消
保存