data+interest: Fixing operator<<
Data packet was missing declaration of operator<< in header file.
Interest class has incorrect output of InterestLifetime parameter
(should be just number of milliseconds, without word "milliseconds"
present).
Change-Id: If2249ed033ab4b47640dfa4ea08253fdb84373d6
Refs: #1681
diff --git a/src/interest.cpp b/src/interest.cpp
index 986a5ec..a6bd107 100644
--- a/src/interest.cpp
+++ b/src/interest.cpp
@@ -255,7 +255,7 @@
}
if (interest.getInterestLifetime() >= time::milliseconds::zero()
&& interest.getInterestLifetime() != DEFAULT_INTEREST_LIFETIME) {
- os << delim << "ndn.InterestLifetime=" << interest.getInterestLifetime();
+ os << delim << "ndn.InterestLifetime=" << interest.getInterestLifetime().count();
delim = '&';
}