mirror of
https://github.com/MeiK2333/river.git
synced 2025-11-04 14:49:40 +08:00
更新超时逻辑
This commit is contained in:
parent
f7c3223786
commit
98f6458cb2
@ -82,6 +82,11 @@ pub async fn judge(
|
|||||||
// MLE
|
// MLE
|
||||||
return Ok(memory_limit_exceeded(status.time_used, mem_used));
|
return Ok(memory_limit_exceeded(status.time_used, mem_used));
|
||||||
} else if status.signal != 0 {
|
} else if status.signal != 0 {
|
||||||
|
// 因墙上时钟超时被主动中断
|
||||||
|
if status.real_time_used as i64 > time_limit.into() {
|
||||||
|
// TLE
|
||||||
|
return Ok(time_limit_exceeded(status.time_used, mem_used));
|
||||||
|
}
|
||||||
// RE
|
// RE
|
||||||
return Ok(runtime_error(
|
return Ok(runtime_error(
|
||||||
status.time_used,
|
status.time_used,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user