Commit a8ed2cf3 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

The best mistakes are those you make twice; once in perl and the other

in PHP. The astute observer will notice the web pages seem a little
faster now ...
parent 809791ff
...@@ -1166,8 +1166,11 @@ function TBHasSerialConsole($node_id) { ...@@ -1166,8 +1166,11 @@ function TBHasSerialConsole($node_id) {
# #
$maxtries = 3; $maxtries = 3;
$DBlinkid = 0; $DBlinkid = 0;
while ($maxtries && !$DBlinkid) { while ($maxtries) {
$DBlinkid = mysql_connect(); $DBlinkid = mysql_connect();
if ($DBlinkid) {
break;
}
$maxtries--; $maxtries--;
sleep(1); sleep(1);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment