diff --git a/services/location_geocode/geocode/source/geo_convert_service.cpp b/services/location_geocode/geocode/source/geo_convert_service.cpp index 66fcc1ce..4a3ebb54 100644 --- a/services/location_geocode/geocode/source/geo_convert_service.cpp +++ b/services/location_geocode/geocode/source/geo_convert_service.cpp @@ -34,7 +34,8 @@ const bool REGISTER_RESULT = SystemAbility::MakeAndRegisterAbility( const uint32_t EVENT_SEND_GEOREQUEST = 0x0100; const char* UNLOAD_GEOCONVERT_TASK = "geoconvert_sa_unload"; const int GEOCONVERT_CONNECT_TIME_OUT = 1; -const int UNLOAD_GEOCONVERT_DELAY_TIME = 5; +const uint32_t EVENT_INTERVAL_UNITE = 1000; +const int UNLOAD_GEOCONVERT_DELAY_TIME = 5 * EVENT_INTERVAL_UNITE; GeoConvertService* GeoConvertService::GetInstance() { static GeoConvertService data;