diff options
Diffstat (limited to 'examples/small_demos/top.stp')
-rwxr-xr-x | examples/small_demos/top.stp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/small_demos/top.stp b/examples/small_demos/top.stp index fa180dd5..ed658907 100755 --- a/examples/small_demos/top.stp +++ b/examples/small_demos/top.stp @@ -6,13 +6,9 @@ global syscalls function print_top () { - cnt=0 printf ("SYSCALL\t\t\t\tCOUNT\n") - foreach ([name] in syscalls-) { + foreach ([name] in syscalls- limit 20) printf("%-20s\t\t%5d\n",name, syscalls[name]) - if (cnt++ == 20) - break - } printf("--------------------------------------\n") delete syscalls } |