From 5f3ea3240c2039b3ded3a92f104f5c29b40e4500 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 15 Jan 2023 15:01:14 -0800 Subject: Show both cyc/evt and evt/cyc horizontal counters. --- pt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt b/pt index bca7d5b..c17d902 100755 --- a/pt +++ b/pt @@ -81,7 +81,7 @@ rwidth = $order.map { | x | x.to_s.size }.max $horiz.keys.sort.each do | occ | $stdout.write(" " * rwidth + " #{$horiz[occ].ljust($maxtime)}") count = $horiz[occ].delete(" ").size - $stdout.write(" #{($maxtime.to_f / count.to_f).round(2).to_s.rjust(5)} cyc/evt\n") + $stdout.write(" #{($maxtime.to_f / count.to_f).round(2).to_s.rjust(10)} cyc/evt #{(count.to_f / $maxtime.to_f).round(2).to_s.rjust(10)} evt/cyc\n") end $stdout.write("\n") -- cgit v1.2.3