mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
fix 32-bit overflow
This commit is contained in:
parent
1a72af5f67
commit
28c9236c1d
@ -39,7 +39,7 @@ func Trace(handler Handler, runner Runner, limits ResLimit) (result TraceResult,
|
||||
}
|
||||
|
||||
// Set real time limit, kill process after it
|
||||
timer := time.AfterFunc(time.Duration(limits.RealTimeLimit*1e6), func() {
|
||||
timer := time.AfterFunc(time.Duration(int64(limits.RealTimeLimit)*1e6), func() {
|
||||
tle = true
|
||||
killAll(pgid)
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user