From a820594ecb1fb432414a68a6eb547ec50dd28634 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Tue, 10 Sep 2024 22:34:42 +0100 Subject: [PATCH] flow-monitor: Put serializable attributes in separate lines --- src/flow-monitor/model/flow-monitor.cc | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/flow-monitor/model/flow-monitor.cc b/src/flow-monitor/model/flow-monitor.cc index e04508df6..0df35c1cd 100644 --- a/src/flow-monitor/model/flow-monitor.cc +++ b/src/flow-monitor/model/flow-monitor.cc @@ -439,12 +439,24 @@ FlowMonitor::SerializeToXmlStream(std::ostream& os, os << std::string(indent, ' '); #define ATTRIB(name) " " #name "=\"" << flowStats.name << "\"" #define ATTRIB_TIME(name) " " #name "=\"" << flowStats.name.As(Time::NS) << "\"" - os << "\n"; + os << "\n"; #undef ATTRIB_TIME #undef ATTRIB