|
|
|
@ -171,13 +171,9 @@ async function connect() {
|
|
|
|
|
const convertedResult = judgeResult.convertResult(result.taskId, result.progress); |
|
|
|
|
winston.verbose('Reporting report finished: ' + result.taskId); |
|
|
|
|
progressPusher.cleanupProgress(result.taskId); |
|
|
|
|
|
|
|
|
|
console.log(convertedResult); |
|
|
|
|
if (!judge_state) return; |
|
|
|
|
if ( convertedResult.time < 900) { |
|
|
|
|
judge_state.score = convertedResult.score + (convertedResult.time / 1000).toFixed(2)*convertedResult.score; |
|
|
|
|
} else { |
|
|
|
|
judge_state.score = convertedResult.score; |
|
|
|
|
} |
|
|
|
|
judge_state.score = convertedResult.score; |
|
|
|
|
judge_state.pending = false; |
|
|
|
|
judge_state.status = convertedResult.statusString; |
|
|
|
|
judge_state.total_time = convertedResult.time; |
|
|
|
|