mgmt: Making use of standard appendVersion/appendSegment calls
Change-Id: I41bde564f276c089ce55de8824c07a790d9f9164
diff --git a/daemon/mgmt/segment-publisher.cpp b/daemon/mgmt/segment-publisher.cpp
index fefe30e..82ae31e 100644
--- a/daemon/mgmt/segment-publisher.cpp
+++ b/daemon/mgmt/segment-publisher.cpp
@@ -33,7 +33,7 @@
SegmentPublisher::publish()
{
Name segmentPrefix(m_prefix);
- segmentPrefix.appendSegment(time::toUnixTimestamp(time::system_clock::now()).count());
+ segmentPrefix.appendVersion();
static const size_t MAX_SEGMENT_SIZE = MAX_NDN_PACKET_SIZE >> 1;