DD2-monitor/viz/gnuplot/average4v.awk

21 lines
195 B
Awk
Raw Normal View History

2019-01-17 09:15:20 +11:00
#!/usr/bin/awk -f
BEGIN {
flag_debut = 1;
}
{
if (flag_debut) {
debut = $1
flag_debut = 0
}
minutes = ($1-debut) / 60;
val = ($2 + $3 + $4 + $5) / 4.0;
print minutes, val;
}