mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
fix: 启动时连续截图出错10次导致MAA崩溃
This commit is contained in:
@@ -477,7 +477,9 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect
|
||||
json::object {
|
||||
{ "min", screencap_cost_min },
|
||||
{ "max", screencap_cost_max },
|
||||
{ "avg", std::accumulate(filted_duration.begin(), filted_duration.end(), 0ll) / filted_count },
|
||||
{ "avg", filted_count > 0
|
||||
? std::accumulate(filted_duration.begin(), filted_duration.end(), 0ll) / filted_count
|
||||
: -1 },
|
||||
} },
|
||||
};
|
||||
callback(AsstMsg::ConnectionInfo, info);
|
||||
|
||||
Reference in New Issue
Block a user