Skip to content

Commit 0acfeab

Browse files
committed
Default the task time limit to 10000 if is 0
1 parent 5f259d0 commit 0acfeab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/meta.go

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func NewEgorMeta(task Task, config Config) EgorMeta {
7575
if err != nil {
7676
panic(err)
7777
}
78+
if task.TimeLimit == 0 {
79+
task.TimeLimit = 10000
80+
}
7881
return EgorMeta{
7982
TaskName: task.Name,
8083
TaskLang: config.Lang.Default,

0 commit comments

Comments
 (0)