Commit 582e2d7e authored by Hiro's avatar Hiro 🏄
Browse files

Before we would check if onionperf logs would be updated at least once a week.

Now we want to check that these aren't older than 10 minutes.
parent 6f11afaa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -26,11 +26,11 @@ class OnionperfCollector(object):
                minutes = int(seconds/60)
                status = ""

                if minutes > 1440 and minutes < 1800:
                if minutes > 10 and minutes < 60:
                    status='DELAYED'
                elif minutes > 1800 and minutes < 2160:
                elif minutes > 60 and minutes < 240:
                    status='UNSTABLE'
                elif minutes > 2160:
                elif minutes > 480:
                    status='CRITICAL'
                else:
                    status='OK'