summaryrefslogtreecommitdiff
path: root/sqmail-4.3.07/src/failures.sh
blob: c3fe53248bb5fa3bbc8b743f8b324a225ee6e614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
awk '
  /^d d/ {
    reason = $11
    fail[reason] += 1
    xdelay[reason] += $5 - $4
  }
  END {
    for (reason in fail) {
      str = sprintf("%.2f",xdelay[reason])
      print fail[reason],str,reason
    }
  }
'