diff options
author | Yatian XU <yatian.xu@nokia-sbell.com> | 2019-09-17 13:46:50 +0800 |
---|---|---|
committer | Yatian XU <yatian.xu@nokia-sbell.com> | 2019-09-17 05:57:44 +0000 |
commit | 1571a7c1dbecc320d9e0c6014c845a1fe1abe377 (patch) | |
tree | afdeaf900a48af837a0c3aeeac49fa8314df8ea4 /veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp | |
parent | 7966a4012c0eb263936e1b284801a79c5cb607a7 (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-x | veslibrary/ves_cpplibrary/src/lib/transport/XDiskQueue.cpp | 2 |
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;
}
|