Minor tweaks

This commit is contained in:
Ian Renton
2025-10-06 21:11:59 +01:00
parent 6ee4fe288a
commit 2dcfae98f8
3 changed files with 9 additions and 5 deletions

View File

@@ -221,9 +221,11 @@ function updateRefreshDisplay() {
if (secSinceUpdate < REFRESH_INTERVAL_SEC) {
count = REFRESH_INTERVAL_SEC - secSinceUpdate;
if (count <= 60) {
updatingString = "Updating in " + count.toFixed(0) + " seconds...";
var number = count.toFixed(0);
updatingString = "Updating in " + number + " second" + (number != "1" ? "s" : "") + ".";
} else {
updatingString = "Updating in " + Math.floor(count / 60.0).toFixed(0) + " minutes.";
var number = Math.round(count / 60.0).toFixed(0);
updatingString = "Updating in " + number + " minute" + (number != "1" ? "s" : "") + ".";
}
}
$("#timing-container").text("Last updated at " + lastUpdateTime.format('HH:mm') + " UTC. " + updatingString);