From a345f8e04ecd928a93d445ed55daaaa18a2c317b Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 17 Oct 2014 21:22:55 -0400 Subject: [PATCH] viewing-and-analyzing: simplify Python example Signed-off-by: Philippe Proulx --- contents/getting-started/viewing-and-analyzing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.34.1