Skip to content

Commit

Permalink
我也忘了改什么了
Browse files Browse the repository at this point in the history
  • Loading branch information
reigadegr committed Dec 2, 2023
1 parent e871531 commit 13ca146
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ output
Test/irisHelper
Module/irisHelper
Module/config/*.bak
*.exe
*.out
*.app
*.bak
*/*.bak
*/*.zip
Expand Down
4 changes: 2 additions & 2 deletions src/ProfileMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "include/LOG.h"
#define EVENT_SIZE (sizeof(struct inotify_event))
#define BUF_LEN (1024 * (EVENT_SIZE + 16))

#define 事件数量 20
static std::mutex confMutex;
auto readProfile(const char *profile, std::vector<irisConfig> &conf) -> bool;
auto printCurrentTime() -> std::string;
Expand All @@ -37,7 +37,7 @@ auto profileMonitor(const char *dic, const char *profile,

// 循环监听事件
char buffer[BUF_LEN];
#define 事件数量 20

struct epoll_event events[事件数量]; // 存储从内核得到的事件集合
while (true) {
// 等待事件发生。返回需要处理的事件数目
Expand Down
1 change: 0 additions & 1 deletion src/irisHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ auto main(int argc, char **argv) -> int
}
initProfile(argv[1]);
ihelper_default();

std::vector<irisConfig> conf;

if (!readProfile(argv[1], conf)) {
Expand Down

0 comments on commit 13ca146

Please sign in to comment.