From 424bca3bb914213fe3449d1d3462d5992bf5007c Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Sun, 26 Sep 2010 16:55:18 -0700 Subject: Common utility for displaying integer seconds --- vrt/lib/expanded_if_context_section.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vrt/lib/expanded_if_context_section.cc') diff --git a/vrt/lib/expanded_if_context_section.cc b/vrt/lib/expanded_if_context_section.cc index b44cc9b0b..80232a807 100644 --- a/vrt/lib/expanded_if_context_section.cc +++ b/vrt/lib/expanded_if_context_section.cc @@ -26,6 +26,7 @@ #include #include // ntohl #include +#include "header_utils.h" using boost::format; using boost::io::group; @@ -33,6 +34,8 @@ using boost::io::group; namespace vrt { + using namespace detail; + void expanded_if_context_section::clear() { @@ -470,7 +473,8 @@ namespace vrt os << format(" manuf_oui=%#10x") % t; wr_name(os, "fix int secs"); - os << format("%10d\n") % x.integer_secs; + //os << format("%10d\n") % x.integer_secs; + wr_int_secs(os, x.integer_secs); wr_name(os, "fix frac secs"); os << format("%10d\n") % get_frac_secs(&x.fractional_secs); @@ -578,7 +582,7 @@ namespace vrt if (cif & CI_TIMESTAMP_CAL_TIME){ wr_name(os, "timestamp_cal_time"); - wr_uint32_dec(os, timestamp_cal_time); + wr_int_secs(os, timestamp_cal_time); } if (cif & CI_TEMPERATURE){ -- cgit