提交 794eca72 编写于 作者: Y Yu Qing

test_mblock.c changed

上级 b7520d16
......@@ -31,11 +31,8 @@ static int test_delay(void *args)
int main(int argc, char *argv[])
{
int result;
int64_t start_time;
int64_t end_time;
char *filename;
IniContext iniContext;
int64_t mem_size;
struct fast_mblock_man mblock1;
struct fast_mblock_man mblock2;
......@@ -53,12 +50,6 @@ int main(int argc, char *argv[])
FastIFConfig if_configs[32];
struct fast_statfs stats[32];
if (argc > 1) {
filename = argv[1];
} else {
filename = "/etc/mc/worker.conf";
}
start_time = get_current_time_ms();
srand(time(NULL));
log_init();
......@@ -133,6 +124,18 @@ int main(int argc, char *argv[])
#endif
/*
{
int result;
char *filename;
IniContext iniContext;
if (argc > 1) {
filename = argv[1];
} else {
filename = "/etc/mc/worker.conf";
}
if ((result=iniLoadFromFile(filename, &iniContext)) != 0) {
logError("file: "__FILE__", line: %d, "
"load conf file \"%s\" fail, ret code: %d",
......@@ -143,6 +146,8 @@ int main(int argc, char *argv[])
//iniPrintItems(&iniContext);
iniFreeContext(&iniContext);
}
*/
sched_enable_delay_task();
scheduleArray.entries = scheduleEntries;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册