if (trim($loadavg[0])>$loadlimit) {
$servertoobusy=1;
}
and add this right after that:
Code:
if (trim($loadavg[0])>XXXXX) {
$enablesearches=0;
}
where XXXXX is the load limit you want turn off search on.
And the values of "XXXXX"... are in what way?.
Into the "home" of the Control Panel of vbulletin y can check my server load... always are between 2 and 3... I want to stop the search when the serverload up to 4 and more... like 4.20, 4.35, 5.10 etc.
What i have to put into the "XXXXXX".
Sorry for the question, but i'm a little newbie.