aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-05 17:04:11 -0600
committermat <github@matdoes.dev>2022-03-05 17:04:11 -0600
commit53c955e8b93260673ac1ac84db236846be2f28a9 (patch)
treef13bc2816a1c40017db823f64d0692d16cb82d32 /src
parent5226124e477aa1c706960b7c56fafd001ce7e007 (diff)
downloadskyblock-stats-53c955e8b93260673ac1ac84db236846be2f28a9.tar.gz
skyblock-stats-53c955e8b93260673ac1ac84db236846be2f28a9.tar.bz2
skyblock-stats-53c955e8b93260673ac1ac84db236846be2f28a9.zip
fix next api update
Diffstat (limited to 'src')
-rw-r--r--src/routes/election.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/election.svelte b/src/routes/election.svelte
index 15134b1..8a88410 100644
--- a/src/routes/election.svelte
+++ b/src/routes/election.svelte
@@ -82,11 +82,11 @@
{millisecondsToTime(currentTime - data.last_updated * 1000, {
smallestUnit: 1,
parts: 1,
- })}
+ })} ago
</p>
<p>
<b>Next API update:</b>
- {millisecondsToTime(currentTime - data.last_updated * 1000 + 10 * 60 * 1000, {
+ {millisecondsToTime(10 * 60 * 1000 - (currentTime - data.last_updated * 1000), {
smallestUnit: 1,
parts: 1,
})}