git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834a7b2
)
distinguish median value
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 4 Sep 2019 14:12:13 +0000
(16:12 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Sep 2019 03:11:33 +0000
(
05:11
+0200)
Greater number in case of even lines.
graph
patch
|
blob
|
history
diff --git
a/graph
b/graph
index 36614cd7f8088263375395e1dcfa902ad4a49daa..40eccb15a4144b73e6b99d86b4e7b27fb4e6ba40 100755
(executable)
--- a/
graph
+++ b/
graph
@@
-18,6
+18,7
@@
for my $nr (0 .. $#lines) {
my $color =
$val == $order[0] ? 32 : # max
$val == $order[-1] ? 31 : # min
+ $val == $order[$#order >> 1] ? 1 : # median
90;
printf "\e[%sm", $color if $color;
printf "%*s", $lenval, $val;