mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
rapl: check for > 0 counters
This commit is contained in:
@ -161,7 +161,7 @@ sysprof_rapl_aid_present_finish (SysprofAid *aid,
|
||||
|
||||
present = g_task_get_task_data (G_TASK (result));
|
||||
|
||||
if ((counters = g_task_propagate_pointer (G_TASK (result), error)))
|
||||
if ((counters = g_task_propagate_pointer (G_TASK (result), error)) && counters->len)
|
||||
{
|
||||
g_autoptr(SysprofColorCycle) cycle = sysprof_color_cycle_new ();
|
||||
g_autoptr(GHashTable) cat_to_row = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
|
||||
Reference in New Issue
Block a user