正确调用fieldstat2 histogram
This commit is contained in:
@@ -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);
|
field_id=(int*)malloc(sizeof(int)*2);
|
||||||
snprintf(buff,sizeof(buff),"%s(ms)",(char*)key);
|
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];
|
args->fsid_latency=field_id[0];
|
||||||
snprintf(buff,sizeof(buff),"%s%s",(char*)key,fail_str);
|
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);
|
field_id[1]=FS_register(args->fs_handle, FS_STYLE_FIELD, FS_CALC_SPEED,buff);
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ int tfe_stat_init(struct tfe_proxy * proxy, const char * profile)
|
|||||||
int main(int argc, char * argv[])
|
int main(int argc, char * argv[])
|
||||||
{
|
{
|
||||||
const char * main_profile = "./conf/tfe/tfe.conf";
|
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;
|
unsigned int __log_level = RLOG_LV_INFO;
|
||||||
MESA_load_profile_uint_def(main_profile, "log", "level", &__log_level, RLOG_LV_INFO);
|
MESA_load_profile_uint_def(main_profile, "log", "level", &__log_level, RLOG_LV_INFO);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user