mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: use addProgress instead of progress
This commit is contained in:
1 parent
5182031bca
commit
8810ccd285
12 files changed
+20
-16
No files matched your search
@@ -31,7 +31,7 @@ function judgeCase(c: Case, sid: string) {
|
||||
memory_kb: 0,
|
||||
message: '',
|
||||
},
|
||||
progress: Math.floor((c.id * 100) / ctx.config.count),
|
||||
addProgress: 100 / ctx.config.count,
|
||||
}, c.id);
|
||||
return;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ function judgeCase(c: Case, sid: string) {
|
||||
memory_kb: memory_usage_kb,
|
||||
message,
|
||||
},
|
||||
progress: Math.floor((c.id * 100) / ctx.config.count),
|
||||
addProgress: 100 / ctx.config.count,
|
||||
}, c.id);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ export interface JudgeTaskInterface {
|
||||
status?: number;
|
||||
message?: string;
|
||||
progress?: number;
|
||||
addProgress?: number;
|
||||
case?: {
|
||||
status: number;
|
||||
score?: number;
|
||||
|
||||
Reference in new issue
Block a user