3 # Output accumulated log record count/size statistics.
10 gsub("[][: ]", " ", $1)
14 l[a[3]] += a[2] - l_offset
24 # We can't figure out the size of the first record in each log file,
25 # use the average for other records we found as an estimate.
27 if (s[i] != 0 && n[i] != 0) {
28 l[i] += s[i] * (l[i]/n[i])
33 printf "%s: %d (n: %d, avg: %.2f)\n", i, l[i], n[i], l[i]/n[i]
35 printf "%s: unknown (n: %d, unknown)\n", i, s[i]