diff --git a/frontend/menu/backend/menu_common_backend.c b/frontend/menu/backend/menu_common_backend.c index 76772d104b..f954eaf5df 100644 --- a/frontend/menu/backend/menu_common_backend.c +++ b/frontend/menu/backend/menu_common_backend.c @@ -4671,9 +4671,10 @@ static void menu_common_setting_set_label(char *type_str, size_t type_str_size, if (counters[type]) { + unsigned offset = type - RGUI_SETTINGS_PERF_COUNTERS_BEGIN; snprintf(type_str, type_str_size, PERF_LOG_FMT, - ((unsigned long long)counters[type]->total / (unsigned long long)counters[type]->call_cnt), - (unsigned long long)counters[type]->call_cnt); + ((unsigned long long)counters[offset]->total / (unsigned long long)counters[offset]->call_cnt), + (unsigned long long)counters[offset]->call_cnt); } else #endif diff --git a/frontend/menu/disp/rgui.c b/frontend/menu/disp/rgui.c index 45725413f8..4b8fd5bf4d 100644 --- a/frontend/menu/disp/rgui.c +++ b/frontend/menu/disp/rgui.c @@ -448,7 +448,9 @@ static void rgui_render(void) char type_str[256]; unsigned w = 19; - if (menu_type == RGUI_SETTINGS_INPUT_OPTIONS || menu_type == RGUI_SETTINGS_CUSTOM_BIND || menu_type == RGUI_SETTINGS_CUSTOM_BIND_KEYBOARD) + if (menu_type == RGUI_SETTINGS_PERFORMANCE_COUNTERS) + w = 28; + else if (menu_type == RGUI_SETTINGS_INPUT_OPTIONS || menu_type == RGUI_SETTINGS_CUSTOM_BIND || menu_type == RGUI_SETTINGS_CUSTOM_BIND_KEYBOARD) w = 21; else if (menu_type == RGUI_SETTINGS_PATH_OPTIONS) w = 24;