fs增加输出间隔配置
This commit is contained in:
@@ -1906,7 +1906,7 @@ static struct kni_field_stat_handle * fs_init(const char *profile){
|
||||
struct kni_field_stat_handle *fs_handle = NULL;
|
||||
screen_stat_handle_t handle = NULL;
|
||||
const char *app_name = "fs2_kni";
|
||||
int value = 0, ret;
|
||||
int value = 0, ret, stat_cycle;
|
||||
int remote_switch = 0;
|
||||
char remote_ip[INET_ADDRSTRLEN];
|
||||
int remote_port;
|
||||
@@ -1935,6 +1935,7 @@ static struct kni_field_stat_handle * fs_init(const char *profile){
|
||||
value=FS_OUTPUT_STATSD;
|
||||
FS_set_para(handle, STATS_FORMAT, &value, sizeof(value));
|
||||
}
|
||||
MESA_load_profile_int_def(profile, section, "stat_cycle", &stat_cycle, 5);
|
||||
fs_handle = ALLOC(struct kni_field_stat_handle, 1);
|
||||
fs_handle->handle = handle;
|
||||
FS_set_para(handle, APP_NAME, app_name, strlen(app_name) + 1);
|
||||
@@ -1945,7 +1946,7 @@ static struct kni_field_stat_handle * fs_init(const char *profile){
|
||||
FS_set_para(handle, PRINT_MODE, &value, sizeof(value));
|
||||
value = 1;
|
||||
FS_set_para(handle, CREATE_THREAD, &value, sizeof(value));
|
||||
value = 5;
|
||||
value = stat_cycle;
|
||||
FS_set_para(handle, STAT_CYCLE, &value, sizeof(value));
|
||||
value = 4096;
|
||||
FS_set_para(handle, MAX_STAT_FIELD_NUM, &value, sizeof(value));
|
||||
|
||||
Reference in New Issue
Block a user