2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-09 00:20:26 +00:00

fix to spamming seconds behind (#2)

* fix to spamming seconds behind

* changes the message

* bumped version
This commit is contained in:
mohammed jasem alaajel
2021-05-13 22:41:53 +04:00
committed by GitHub
parent f8ed847857
commit 76721cd5fd
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,8 @@ public final class RedisBungee extends Plugin {
if (lagged ? time >= stamp + 30 : time <= stamp + 30)
servers.add(entry.getKey());
else if (nag && nagTime <= 0) {
getLogger().severe(entry.getKey() + " is " + (time - stamp) + " seconds behind! (Time not synchronized or server down?)");
getLogger().severe(entry.getKey() + " is " + (time - stamp) + " seconds behind! (Time not synchronized or server down?) and was removed from heartbeat.");
jedis.hdel("heartbeats", entry.getKey());
}
} catch (NumberFormatException ignored) {
}