From a14b9983db45f7b20a654d85ca580bc729e20874 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Feb 2020 09:50:23 -0500 Subject: wip xml --- rrdformat/marshal_xml.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rrdformat/marshal_xml.go') diff --git a/rrdformat/marshal_xml.go b/rrdformat/marshal_xml.go index d81c6cc..fb6c9e1 100644 --- a/rrdformat/marshal_xml.go +++ b/rrdformat/marshal_xml.go @@ -50,6 +50,13 @@ func (rrd RRDv0005) MarshalXML(e *xml.Encoder, start xml.StartElement) error { } } + // 4. Round Robin Archives + for _, rra := range rrd.RRADefs { + if err := e.EncodeElement(rra, xmlStart("rra")); err != nil { + return err + } + } + if err := e.EncodeToken(start.End()); err != nil { return err } -- cgit v1.2.3-54-g00ecf