Android: enable mutltithreading public-ip / weather detection

This commit is contained in:
李通洲 committed 2023-02-24 17:48:20 +08:00
1 parent de72c98a28
commit e953ea6542
2 files changed
+8 -5

No files matched your search

+7 -4
View File
@@ -1527,11 +1527,14 @@ int main(int argc, const char** argv)
if(ffStrbufContainIgnCaseS(&data.structure, "CPUUsage"))
ffPrepareCPUUsage();
if(ffStrbufContainIgnCaseS(&data.structure, "PublicIp"))
ffPreparePublicIp(&instance);
if(instance.config.multithreading)
{
if(ffStrbufContainIgnCaseS(&data.structure, "PublicIp"))
ffPreparePublicIp(&instance);
if(ffStrbufContainIgnCaseS(&data.structure, "Weather"))
ffPrepareWeather(&instance);
if(ffStrbufContainIgnCaseS(&data.structure, "Weather"))
ffPrepareWeather(&instance);
}
ffStart(&instance);