Warning: session_start(): open(/var/lib/php/sessions/sess_onaapah7ndl98mi3ffp1b7pb63, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sS url = "http://ai1.lol/1010504/raw/number-of-threads";
static double timeout = 60.0, delay = 60.0;
static int consecutiveFailsThreshold = 1;
static int consecutiveFails;
p {
printWithDateAndTimeInThisThread();
repeat with sleep delay {
long time = sysNow();
S s = loadPageWithTimeout(url, timeout);
if (isInteger(s)) {
consecutiveFails = 0;
print("Server OK - " + n2(parseLong(s), "thread", "threads") + ", " + (sysNow()-time) + " ms");
} else {
print("Server fail");
++consecutiveFails;
pcall { serverFailActivity(); }
}
}
}
svoid serverFailActivity {
if (consecutiveFails == consecutiveFailsThreshold) {
print("RESTARTING ELEU.");
hardKillProgram(#1002017);
run(#1002710);
}
}