diff --git a/README.md b/README.md index 0738924..89dd065 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ Easy-Reactor是一个基于Reactor模式的Linux C++网络服务器框架,支 [1]: https://github.com/LeechanX/Easy-Load-Balancer +#### 类关系图 +![image](https://github.com/woaishixiaoxiao/Easy-Reactor/blob/master/reator%E7%B1%BB%E5%9B%BE%E5%88%86%E6%9E%90.png) + #### 性能一览 >服务器参数: diff --git "a/reator\347\261\273\345\233\276\345\210\206\346\236\220.png" "b/reator\347\261\273\345\233\276\345\210\206\346\236\220.png" new file mode 100644 index 0000000..3cbe99a Binary files /dev/null and "b/reator\347\261\273\345\233\276\345\210\206\346\236\220.png" differ diff --git a/src/timer_queue.cc b/src/timer_queue.cc index 57b533a..44d7cba 100644 --- a/src/timer_queue.cc +++ b/src/timer_queue.cc @@ -45,7 +45,7 @@ void timer_queue::del_timer(int timer_id) _pioneer = -1; reset_timo(); } - else if (_event_lst[0].ts < _pioneer) + else if (_event_lst[0].ts > _pioneer) { _pioneer = _event_lst[0].ts; reset_timo();