aboutsummaryrefslogtreecommitdiff
path: root/vote
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-16 23:13:57 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-16 23:13:57 +0200
commitf1743a01cf758829eddd589f1f3aa5e35749ce28 (patch)
tree8a615f2ef8beb3f5d3cf9d1a61a3dc2bee447c1f /vote
parent90e40ea6967cdf27ab64a59db59c9a172a649c90 (diff)
shorten log strings and drop superfluous related comment
Diffstat (limited to 'vote')
-rw-r--r--vote/vote.ino9
1 files changed, 4 insertions, 5 deletions
diff --git a/vote/vote.ino b/vote/vote.ino
index 4548087..ac5a5f5 100644
--- a/vote/vote.ino
+++ b/vote/vote.ino
@@ -175,14 +175,13 @@ const char* qualifyMusselVote(
) {
unsigned long age = now - voteTimestamp;
- // Log vote age and gape
- log_i("Qualifying vote | Time since vote: %lu ms", age);
-
if (age <= VOTE_TIME_TOLERANCE) {
- log_i("→ VALID: Vote is within 1 minute");
+ log_i("VALID: Vote is within 1 minute (age: %lus)",
+ age / 1000);
return "valid";
} else {
- log_i("→ INVALID: Vote is older than 1 minute");
+ log_i("INVALID: Vote is older than 1 minute (age: %lus)"
+ age / 1000);
return "invalid";
}
}