fix: no unsigned subtraction

This commit is contained in:
SherkeyXD
2025-07-02 19:33:17 +08:00
parent edc9a1f64a
commit 13e42a7915

View File

@@ -696,7 +696,7 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect
: -1 },
} },
};
if (m_screencap_cost.size() - filtered_count > 0) {
if (m_screencap_cost.size() > filtered_count) {
info["details"]["fault_times"] = m_screencap_cost.size() - filtered_count;
}
callback(AsstMsg::ConnectionInfo, info);