Made MAX_TASK_NS u128. Also removed a superfluous into(). Both were required to fix #36122 with nightly 1.85.0 (4d91de4e4 2025-02-17). (#36169)

Signed-off-by: Moritz Moeller <virtualritz@protonmail.com>
This commit is contained in:
Moritz Mœller 2025-03-27 11:02:53 +01:00 committed by GitHub
parent 0051234e2c
commit e4efdfe668
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1726,7 +1726,7 @@ impl ScriptThread {
let task_duration = start.elapsed();
for (doc_id, doc) in self.documents.borrow().iter() {
if let Some(pipeline_id) = pipeline_id {
if pipeline_id == doc_id && task_duration.as_nanos() > MAX_TASK_NS.into() {
if pipeline_id == doc_id && task_duration.as_nanos() > MAX_TASK_NS {
if self.print_pwm {
println!(
"Task took longer than max allowed ({:?}) {:?}",