diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-05-10 09:59:11 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-05-10 09:59:11 +0000 |
commit | 3e104aa3015d82df2635b4f45cb0e3d81c1f3438 (patch) | |
tree | 261718d0d07b1276d05a57bbce4e81298f6918b2 /app/x11perf/perfratio | |
parent | 89728b50d745f84d04c77dca8c869c189a269294 (diff) |
Update to x11perf 1.6.0
Diffstat (limited to 'app/x11perf/perfratio')
-rw-r--r-- | app/x11perf/perfratio | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/app/x11perf/perfratio b/app/x11perf/perfratio index 6ff3a12c9..fa0a912f4 100644 --- a/app/x11perf/perfratio +++ b/app/x11perf/perfratio @@ -1,31 +1,26 @@ #!/bin/sh awk ' -/^ 1/ && READY == 0 { printf (" 1 "); +/^ 1/ && READY == 0 { printf (" 1 "); for (i = 2; i < NF; i++) - printf (" %2d ", i); - printf (" Operation\n"); + printf (" %2d ", i); + printf (" Operation\n"); next; } -/^---/ { printf ("--------"); +/^---/ { printf ("------------"); for (i = 2; i < NF; i++) - printf (" ------"); + printf (" ----------"); printf (" ---------\n"); READY=1; next; } READY==1 { base=$1; - printf ("%8.1f", base); + printf ("%12.1f", base); for (i = 2; i < '$1'; i++) { if (base == 0) printf (" lots ", $i); else { rate=$i/base; - if (rate < .1) - printf (" %6.3f", rate); - else if (rate < 1000) - printf (" %6.2f", rate); - else - printf (" %6.0f", rate); + printf (" %10.3f", rate); } } printf (" "); |