File: add_assign_float.mtail

package info (click to toggle)
mtail 3.0.0~rc43-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,336 kB
  • sloc: yacc: 576; makefile: 217; sh: 123; lisp: 77; awk: 17
file content (8 lines) | stat: -rw-r--r-- 136 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
gauge metric

# To make ex_test.go happy
strptime("2017-10-30T08:52:14Z", "2006-01-02T15:04:05Z07:00")

/(\d+\.\d+)/ {
  metric += $1
}