fix: 博朗台计算等待时间失败数据处理

This commit is contained in:
status102
2025-01-06 20:02:15 +08:00
parent b49b1ee0f4
commit ace5129b3e
2 changed files with 5 additions and 1 deletions

View File

@@ -104,7 +104,9 @@ bool asst::MedicineCounterTaskPlugin::_run()
if (*sanity_target >= *sanity_max) [[unlikely]] {
auto waitTime = DrGrandetTaskPlugin::analyze_time_left(image);
sleep(waitTime);
if (waitTime > 0) {
sleep(waitTime);
}
}
}