That was a fun project to have running on my old PC.
There’s newer version of downtime tracking algorithm:
…I see now that this was posted earlier…