Skip to content

Commit

Permalink
tweak progress countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 19, 2024
1 parent 31ecab3 commit 2f0fb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/contest-progress.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
function getHumanTimeLeft(when: Date): string {
const dt = when.getTime() - Date.now();
if (dt > ONE_DAY_MS) {
if (dt > ONE_DAY_MS * 2) {
return `${Math.round(dt / ONE_DAY_MS)} days`;
}
if (dt >= ONE_HOUR_MS * 2) {
Expand Down

0 comments on commit 2f0fb3f

Please sign in to comment.