Wrong, the bullshit, if you want to name it like this, is based on Minetest decision that often crash (or restart) is bad:Wuzzy wrote: ↑Sat Oct 01, 2022 15:46Also, you can't conclude from short uptimes that it was due to crashes. Even if it was a crash, it could also be a faulty mod. But there is always the possibility of a regular shutdown. For example, the JT2 server restarts daily by design, so your analysis goes right into the toilet there.
I wanna remind you to .../serverlist/...
Code: Select all
# Up to -8 for less than an hour of uptime (penalty linearly decreasing)
# only if the server has restarted before within the last 2 hours
HOUR_SECS = 60 * 60
uptime = server["uptime"]
if uptime < HOUR_SECS:
start_time = start_times.get("%s:%d" % (server["ip"], server["port"]), 0)
if start_time >= time.time() - 2 * HOUR_SECS:
points -= ((HOUR_SECS - uptime) / HOUR_SECS) * 8
So then also fact, that I can use it also to estimate a stability of a server.