add an option for max number of sleeping threads

This commit is contained in:
Brian Quinion
2012-12-08 18:55:17 +00:00
parent 02e7cfd6f4
commit fa90ece530
4 changed files with 32 additions and 4 deletions

View File

@@ -23,6 +23,9 @@
if ($aResult['list'])
{
$iCurrentSleeping = $m->get('sleepCounter');
echo "\n Sleeping blocks count: $iCurrentSleeping\n";
$aBlocks = getBucketBlocks();
echo "\n";
printf(" %-40s | %12s | %7s | %13s | %16s | %31s\n", "Key", "Total Blocks", "Current", "Still Blocked", "Last Req Blocked", "Last Block Time");
@@ -36,5 +39,6 @@
if ($aResult['delete'])
{
$m->set('sleepCounter', 0);
clearBucketBlocks();
}