function formatStats2 in Memcache API and Integration 5.2
1 call to formatStats2()
File
- ./
memcachetests.php, line 379
Code
function formatStats2($mc1, $mc2, $flush = FALSE) {
static $count, $first;
$stats1 = $mc1
->getStats();
$stats2 = $mc2
->getStats();
if ($flush) {
unset($first);
}
if (!isset($first)) {
$count = 1;
$first = FALSE;
print "<table border='1'><tr><th> </th><th>Server 1</th><th>Server 2</th></tr>";
}
print "<tr><td>{$count}</td><td>" . $stats1['bytes'] . "</td><td>" . $stats2['bytes'] . "</td></tr>";
$count++;
}