FIX:fixed the display error caused by the incorrect remain

Change-Id: I9c0bb7325d4d9ae043aa3dc868f94102e3aa24ae
This commit is contained in:
tao wang 2022-11-23 09:51:10 +08:00 committed by Lane.Wei
parent 1ae4a74687
commit de0b0508eb

View file

@ -82,6 +82,7 @@ bool AMSinfo::parse_ams_info(Ams *ams)
} }
info.material_remain = it->second->remain < 0 ? 100 :it->second->remain; info.material_remain = it->second->remain < 0 ? 100 :it->second->remain;
info.material_remain = it->second->remain > 100 ? 100 :info.material_remain;
} else { } else {
info.can_id = it->second->id; info.can_id = it->second->id;