diff options
Diffstat (limited to 'src/summary-view.c')
-rw-r--r-- | src/summary-view.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/summary-view.c b/src/summary-view.c index e24945a..ea32290 100644 --- a/src/summary-view.c +++ b/src/summary-view.c @@ -175,11 +175,8 @@ summary_view_query_tooltip (GtkWidget *widget, A = sum->largest; n_allocs = A->time_tail->n_allocs; - if (! allocators_store_is_cumulative ((AllocatorsStore *) model) && - A->time_tail->prev) - { - n_allocs -= A->time_tail->freed; - } + if (! allocators_store_is_cumulative ((AllocatorsStore *) model)) + n_allocs -= A->time_tail->n_frees; string = g_string_new ("Most frequent allocation callsite, "); len = g_snprintf (calls + 40, 40, "%u", n_allocs); @@ -216,11 +213,8 @@ summary_view_query_tooltip (GtkWidget *widget, *prev = next; } else { n_allocs = AA->time_tail->n_allocs; - if (! allocators_store_is_cumulative ((AllocatorsStore *) model) && - AA->time_tail->prev) - { - n_allocs -= AA->time_tail->freed; - } + if (! allocators_store_is_cumulative ((AllocatorsStore *) model)) + n_allocs -= AA->time_tail->n_frees; this_allocs += n_allocs; prev = &l->next; } |