Skip to content

Commit

Permalink
time limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurkuru committed Apr 16, 2011
1 parent bc6c5dd commit a534c0a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mysql_tools/kill.php
Expand Up @@ -47,11 +47,10 @@
$result = mysql_query("SHOW FULL PROCESSLIST");
while ($row=mysql_fetch_array($result)) {
$process_id=$row["Id"];
if (strpos($row['Host'],"$content")!==false ) {
echo "KILL query $process_id";
$sql="KILL $process_id";
mysql_query($sql);
}
if ($row["Time"] > 100 ) {
$sql="KILL $process_id";
mysql_query($sql);
}
}
}
?>

0 comments on commit a534c0a

Please sign in to comment.