diff options
| author | Tom Harley | 2020-01-23 13:03:25 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-01-23 13:03:25 +0000 |
| commit | f3d375722130e448802c046af2d75f66a06de498 (patch) | |
| tree | 0c82bd620be0401c6b9ba69c3314dfe0d9522eae /data/awk/no_opt.awk | |
| download | machinarium-f3d375722130e448802c046af2d75f66a06de498.tar.gz machinarium-f3d375722130e448802c046af2d75f66a06de498.zip | |
Diffstat (limited to 'data/awk/no_opt.awk')
| -rw-r--r-- | data/awk/no_opt.awk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/awk/no_opt.awk b/data/awk/no_opt.awk new file mode 100644 index 0000000..7fe4348 --- /dev/null +++ b/data/awk/no_opt.awk @@ -0,0 +1,16 @@ +FS="," + +/^"P1/ { + if ($12 == 1) { + s_nodes[$1] += $14 + } +} + +END { + for (x in s_nodes) { + s_nodes[x] = s_nodes[x] / 8; + } + for (x in s_nodes) { + printf("%s,%lf\n", x, s_nodes[x]); + } +} |
