diff options
Diffstat (limited to 'rrdformat/marshal_xml.go')
-rw-r--r-- | rrdformat/marshal_xml.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |