diff --git a/services/distributeddataservice/libs/distributeddb/syncer/src/meta_data.cpp b/services/distributeddataservice/libs/distributeddb/syncer/src/meta_data.cpp index 753d41274575d048b94f74b4a2a3a66420d6465a..7d1da4efde181d8b7b9a49c3d2822148222e3783 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