From: Philippe Proulx Date: Sat, 18 Oct 2014 01:22:55 +0000 (-0400) Subject: viewing-and-analyzing: simplify Python example X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a345f8e04ecd928a93d445ed55daaaa18a2c317b;p=lttng-docs.git viewing-and-analyzing: simplify Python example Signed-off-by: Philippe Proulx --- diff --git a/contents/getting-started/viewing-and-analyzing.md b/contents/getting-started/viewing-and-analyzing.md index 72255e7..e49cc5a 100644 --- a/contents/getting-started/viewing-and-analyzing.md +++ b/contents/getting-started/viewing-and-analyzing.md @@ -130,7 +130,7 @@ def top5proc(): last_ts = cur_ts # display top 10 - for name, ns in exec_times.most_common()[:5]: + for name, ns in exec_times.most_common(5): s = ns / 1000000000 print('{:20}{} s'.format(name, s))