From 3b6b82eb93fdd64f43cd48c600a3000fe9f7160d Mon Sep 17 00:00:00 2001 From: wbq_sky Date: Mon, 27 Sep 2021 17:39:42 +0800 Subject: [PATCH] alther the wrong spelling Signed-off-by: wbq_sky --- .../libs/distributeddb/syncer/src/meta_data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/distributeddataservice/libs/distributeddb/syncer/src/meta_data.cpp b/services/distributeddataservice/libs/distributeddb/syncer/src/meta_data.cpp index 753d41274..7d1da4efd 100755 --- a/services/distributeddataservice/libs/distributeddb/syncer/src/meta_data.cpp +++ b/services/distributeddataservice/libs/distributeddb/syncer/src/meta_data.cpp @@ -25,7 +25,7 @@ namespace DistributedDB { namespace { - const int STR_TO_LL_BY_DEX = 10; + const int STR_TO_LL_BY_DEC = 10; // store local timeoffset;this is a special key; const std::string LOCALTIMEOFFSET_KEY = "localTimeOffset"; const std::string DEVICEID_PREFIX_KEY = "deviceId"; @@ -240,7 +240,7 @@ void Metadata::GetMetadataFromMap(const DeviceID &deviceId, MetaDataValue &outVa int64_t Metadata::StringToLong(const std::vector &value) { std::string valueString(value.begin(), value.end()); - int64_t longData = std::strtoll(valueString.c_str(), nullptr, STR_TO_LL_BY_DEX); + int64_t longData = std::strtoll(valueString.c_str(), nullptr, STR_TO_LL_BY_DEC); LOGD("Metadata::StringToLong longData = %lld\n", longData); return longData; } @@ -309,4 +309,4 @@ void Metadata::GetHashDeviceId(const DeviceID &deviceId, DeviceID &hashDeviceId, hashDeviceId = deviceIdToHashDeviceIdMap_[deviceId]; } } -} // namespace DistributedDB \ No newline at end of file +} // namespace DistributedDB -- Gitee