Browse Source

调整上报速度

master
zhaohe 4 weeks ago
parent
commit
cf080bf92b
  1. 6
      appsrc/service/app/add_liquid_service.cpp

6
appsrc/service/app/add_liquid_service.cpp

@ -27,7 +27,11 @@ void AddLiquidService::initialize() {
} catch (const std::exception& e) {
logger->error("stateUpdateThread error:{}", e.what());
}
ThisThread().sleepForMs(500);
if (m_workstate == kidle) {
ThisThread().sleepForMs(5000);
} else {
ThisThread().sleepForMs(1000);
}
}
}));
} else {

Loading…
Cancel
Save