summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp
diff options
context:
space:
mode:
authorYatian XU <yatian.xu@nokia-sbell.com>2019-09-17 13:46:50 +0800
committerYatian XU <yatian.xu@nokia-sbell.com>2019-09-17 05:57:44 +0000
commit1571a7c1dbecc320d9e0c6014c845a1fe1abe377 (patch)
treeafdeaf900a48af837a0c3aeeac49fa8314df8ea4 /veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp
parent7966a4012c0eb263936e1b284801a79c5cb607a7 (diff)
Contribute C++ implement of VES spec 7.0.1 to ONAP/vnfsdk:
Part5: test and code coverage Issue-ID: VNFSDK-466 Signed-off-by: Yatian XU <yatian.xu@nokia-sbell.com> Change-Id: Ia8188169188547b88ec586b68dbe5e42e7b28482
Diffstat (limited to 'veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp')
-rwxr-xr-xveslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp b/veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp
index c63d19e..5834f97 100755
--- a/veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp
+++ b/veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp
@@ -160,7 +160,7 @@ std::string vagt::queue::XDiskQueue::front()
std::string vagt::queue::XDiskQueue::createKey()
{
auto now = chrono::system_clock::now().time_since_epoch().count();
- snprintf(key, sizeof(key), "%020ld_%010u", now, keyId_.fetch_add(1));
+ snprintf(key, sizeof(key), "%020ld_%010ld", now, keyId_.fetch_add(1));
return key;
}