(Menu) Minor nits

This commit is contained in:
twinaphex 2014-06-01 18:54:07 +02:00
parent df53c6b6e7
commit a71d9d2811

View File

@ -5306,12 +5306,11 @@ static void menu_common_setting_set_label(char *type_str, size_t type_str_size,
{
#ifdef PERF_TEST
const struct retro_perf_counter **counters = (const struct retro_perf_counter**)perf_counters_rarch;
unsigned num = perf_ptr_rarch;
if (counters[type] && counters[type]->ident && counters[type]->call_cnt && counters[type]->total)
if (counters[type])
{
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]->total / (unsigned long long)counters[type]->call_cnt),
(unsigned long long)counters[type]->call_cnt);
}
else