Commit 34f17b27 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Fix typo: rrflags -> rflags (#2587)

Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
parent 8691edd6
......@@ -38,7 +38,7 @@ var labels = []string{
"{rcode}",
"{rsize}",
"{duration}",
headerReplacer + "rrflags}",
headerReplacer + "rflags}",
}
// value returns the current value of label.
......@@ -89,7 +89,7 @@ func value(state request.Request, rr *dnstest.Recorder, label string) string {
return EmptyValue
}
return strconv.FormatFloat(time.Since(rr.Start).Seconds(), 'f', -1, 64) + "s"
case headerReplacer + "rrflags}":
case headerReplacer + "rflags}":
if rr != nil && rr.Msg != nil {
return flagsToString(rr.Msg.MsgHdr)
}
......
......@@ -62,7 +62,7 @@ func TestLabels(t *testing.T) {
"{rcode}": "NOERROR",
"{rsize}": "29",
"{duration}": "0",
headerReplacer + "rrflags}": "rd,ad,cd",
headerReplacer + "rflags}": "rd,ad,cd",
}
if len(expect) != len(labels) {
t.Fatalf("Expect %d labels, got %d", len(expect), len(labels))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment