From e02ec90a449426834038b805e2dd1c0f8c434501 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Wed, 1 Jan 2025 16:28:56 +0100 Subject: [PATCH] ugly patch, need more work --- plot-timing.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plot-timing.sh b/plot-timing.sh index dc65b88..27320cf 100755 --- a/plot-timing.sh +++ b/plot-timing.sh @@ -12,12 +12,13 @@ BEGIN { \ mini[foo] = 666; \ maxi[foo] = -42; \ } \ - } \ - { \ - accu[$1] += $2; \ - count[$1]++; \ - if (mini[$1] > $2) mini[$1] = $2; \ - if (maxi[$1] < $2) maxi[$1] = $2; \ + } + \ +$1=="orbite" { \ + accu[$2] += $3; \ + count[$2]++; \ + if (mini[$2] > $3) mini[$2] = $3; \ + if (maxi[$2] < $3) maxi[$2] = $3; \ } \ END { \ for (foo=0; foo