From 962077e7396df2012e18e13d079968f9422dd1eb Mon Sep 17 00:00:00 2001 From: zhengchao Date: Wed, 21 Nov 2018 13:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E8=B0=83=E7=94=A8fieldstat2?= =?UTF-8?q?=20histogram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_future.cpp | 3 ++- platform/src/proxy.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/tfe_future.cpp b/common/src/tfe_future.cpp index c7c04f5..0a9a87c 100644 --- a/common/src/tfe_future.cpp +++ b/common/src/tfe_future.cpp @@ -139,7 +139,8 @@ static long field_get_set_cb(void * data, const uchar * key, uint size, void * u { field_id=(int*)malloc(sizeof(int)*2); snprintf(buff,sizeof(buff),"%s(ms)",(char*)key); - field_id[0]=FS_register(args->fs_handle, FS_STYLE_HISTOGRAM, FS_CALC_CURRENT, buff); + field_id[0]=FS_register_histogram(args->fs_handle, FS_CALC_SPEED, buff, + 1, 30*1000,3); args->fsid_latency=field_id[0]; snprintf(buff,sizeof(buff),"%s%s",(char*)key,fail_str); field_id[1]=FS_register(args->fs_handle, FS_STYLE_FIELD, FS_CALC_SPEED,buff); diff --git a/platform/src/proxy.cpp b/platform/src/proxy.cpp index 1437226..12f9486 100644 --- a/platform/src/proxy.cpp +++ b/platform/src/proxy.cpp @@ -303,7 +303,7 @@ int tfe_stat_init(struct tfe_proxy * proxy, const char * profile) int main(int argc, char * argv[]) { const char * main_profile = "./conf/tfe/tfe.conf"; - const char * future_profile= "./conf/future.conf"; + const char * future_profile= "./conf/tfe/future.conf"; unsigned int __log_level = RLOG_LV_INFO; MESA_load_profile_uint_def(main_profile, "log", "level", &__log_level, RLOG_LV_INFO);