PMCORE-2966
This commit is contained in:
@@ -168,19 +168,19 @@ class PMmemcached
|
|||||||
echo "<tr><td>Cumulative number of retrieval requests </td><td>" . $status["cmd_get"] . "</td></tr>";
|
echo "<tr><td>Cumulative number of retrieval requests </td><td>" . $status["cmd_get"] . "</td></tr>";
|
||||||
echo "<tr><td> Cumulative number of storage requests </td><td>" . $status["cmd_set"] . "</td></tr>";
|
echo "<tr><td> Cumulative number of storage requests </td><td>" . $status["cmd_set"] . "</td></tr>";
|
||||||
|
|
||||||
$percCacheHit = ((real) $status["get_hits"] / (real) $status["cmd_get"] * 100);
|
$percCacheHit = ((float) $status["get_hits"] / (float) $status["cmd_get"] * 100);
|
||||||
$percCacheHit = round( $percCacheHit, 3 );
|
$percCacheHit = round( $percCacheHit, 3 );
|
||||||
$percCacheMiss = 100 - $percCacheHit;
|
$percCacheMiss = 100 - $percCacheHit;
|
||||||
|
|
||||||
echo "<tr><td>Number of keys that have been requested and found present </td><td>" . $status["get_hits"] . " ($percCacheHit%)</td></tr>";
|
echo "<tr><td>Number of keys that have been requested and found present </td><td>" . $status["get_hits"] . " ($percCacheHit%)</td></tr>";
|
||||||
echo "<tr><td>Number of items that have been requested and not found </td><td>" . $status["get_misses"] . "($percCacheMiss%)</td></tr>";
|
echo "<tr><td>Number of items that have been requested and not found </td><td>" . $status["get_misses"] . "($percCacheMiss%)</td></tr>";
|
||||||
|
|
||||||
$MBRead = (real) $status["bytes_read"] / (1024 * 1024);
|
$MBRead = (float) $status["bytes_read"] / (1024 * 1024);
|
||||||
|
|
||||||
echo "<tr><td>Total number of bytes read by this server from network </td><td>" . $MBRead . " Mega Bytes</td></tr>";
|
echo "<tr><td>Total number of bytes read by this server from network </td><td>" . $MBRead . " Mega Bytes</td></tr>";
|
||||||
$MBWrite = (real) $status["bytes_written"] / (1024 * 1024);
|
$MBWrite = (float) $status["bytes_written"] / (1024 * 1024);
|
||||||
echo "<tr><td>Total number of bytes sent by this server to network </td><td>" . $MBWrite . " Mega Bytes</td></tr>";
|
echo "<tr><td>Total number of bytes sent by this server to network </td><td>" . $MBWrite . " Mega Bytes</td></tr>";
|
||||||
$MBSize = (real) $status["limit_maxbytes"] / (1024 * 1024);
|
$MBSize = (float) $status["limit_maxbytes"] / (1024 * 1024);
|
||||||
echo "<tr><td>Number of bytes this server is allowed to use for storage.</td><td>" . $MBSize . " Mega Bytes</td></tr>";
|
echo "<tr><td>Number of bytes this server is allowed to use for storage.</td><td>" . $MBSize . " Mega Bytes</td></tr>";
|
||||||
echo "<tr><td>Number of valid items removed from cache to free memory for new items.</td><td>" . $status["evictions"] . "</td></tr>";
|
echo "<tr><td>Number of valid items removed from cache to free memory for new items.</td><td>" . $status["evictions"] . "</td></tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|||||||
Reference in New Issue
Block a user