summaryrefslogtreecommitdiff
path: root/data/awk/no_opt.awk
diff options
context:
space:
mode:
Diffstat (limited to 'data/awk/no_opt.awk')
-rw-r--r--data/awk/no_opt.awk16
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]);
+ }
+}