Skip to content

Commit

Permalink
Fix in progress in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Feb 5, 2024
1 parent 656c180 commit 6b9f239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ internal fun Flow<ContestUpdate>.toEmulationFlow(startTime: Instant, emulationSp
add((run.time + timeShift.milliseconds) to RunUpdate(run))
}
addAll(analyticsMessages.map { it.relativeTime to AnalyticsUpdate(it) })
}.sortedBy { it.first }.also { println(it.map { it.first }) }.forEach { emit(it) }
}.sortedBy { it.first }.forEach { emit(it) }
}.map { (startTime + it.first / emulationSpeed) to it.second }
.toTimedFlow { logger.info("Processed events upto ${(it - startTime) * emulationSpeed}") }
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const RunStatusLabel = ({ runInfo, className }) => {
return <>
{runInfo.result.type === "ICPC" && <ICPCVerdictLabel runResult={runInfo.result} className={className}/>}
{runInfo.result.type === "IOI" && <IOIVerdictLabel runResult={runInfo.result} className={className}/>}
{runInfo.result.type === "IN_PROGRESS" && <VerdictCellInProgress2 percentage={runInfo.result.testPart} className={className}/>}
{runInfo.result.type === "IN_PROGRESS" && <VerdictCellInProgress2 percentage={runInfo.result.testedPart} className={className}/>}
</>;
};

Expand Down

0 comments on commit 6b9f239

Please sign in to comment.