7 /\| Load/ { total_load = $(NF - 4); load_dev = $NF; next; }
8 /\| Computation/ { comp_sum = $(NF - 4); next; }
9 /\| Data send amount/ { data_sum = $(NF - 4); next; }
10 /\| Ctrl send count/ { ctrl_sum = $(NF - 4); next; }
11 /\| Total simulated time/ { duration = $NF; next; }
12 /caught CTRL-C/ { interrupted = 1; nextfile; }
13 /Simulation succeeded/ { success = 1; next; }
15 ok = success && !interrupted
17 print total_load, load_dev, comp_sum,
18 data_sum, ctrl_sum, duration;
20 print "n/a", "n/a", "n/a", "n/a", "n/a", "n/a"
26 format='%-75s %6s %11s %11s %11s %11s %9s\n'
29 "Total" "Stddev" "Comput." \
30 "Data amnt" "Ctrl mesg" "Duration"
34 if values=$(getval "$file"); then
35 printf "$format" "$name" $values
37 printf "$format" "#$name" $values