diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-05-08 19:29:02 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-05-08 19:29:02 +0100 |
commit | 4dd5fa0ec918b77972edb61c067028e7cabb7491 (patch) | |
tree | 60a04fb2f7dbe65927bcd8d46967ca832e96386f | |
parent | 6d366d4c2971d8769ab432d7a7e288368d6a18f2 (diff) |
Actually use the pretty-print number for the tooltip.
-rw-r--r-- | src/callgraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callgraph.c b/src/callgraph.c index 6084c76..49bad1a 100644 --- a/src/callgraph.c +++ b/src/callgraph.c @@ -337,8 +337,8 @@ call_graph_query_tooltip (GtkWidget *widget, child = child->filter[0]; } while (child->n_filter); - len = g_snprintf (calls, 20, "%d", child->allocs); - pretty_print_number (calls, len, calls + 20); + len = g_snprintf (calls + 20, 20, "%d", child->allocs); + pretty_print_number (calls + 20, len, calls); g_string_append_printf (string, "%s (%.0f%%) calls:", calls, child->allocs * 100. / frame->allocs); |