diff --git a/workflow/engine/classes/PMmemcached.php b/workflow/engine/classes/PMmemcached.php index 74098d33c..b2857d1e0 100644 --- a/workflow/engine/classes/PMmemcached.php +++ b/workflow/engine/classes/PMmemcached.php @@ -168,19 +168,19 @@ class PMmemcached echo "Cumulative number of retrieval requests " . $status["cmd_get"] . ""; echo " Cumulative number of storage requests " . $status["cmd_set"] . ""; - $percCacheHit = ((real) $status["get_hits"] / (real) $status["cmd_get"] * 100); + $percCacheHit = ((float) $status["get_hits"] / (float) $status["cmd_get"] * 100); $percCacheHit = round( $percCacheHit, 3 ); $percCacheMiss = 100 - $percCacheHit; echo "Number of keys that have been requested and found present " . $status["get_hits"] . " ($percCacheHit%)"; echo "Number of items that have been requested and not found " . $status["get_misses"] . "($percCacheMiss%)"; - $MBRead = (real) $status["bytes_read"] / (1024 * 1024); + $MBRead = (float) $status["bytes_read"] / (1024 * 1024); echo "Total number of bytes read by this server from network " . $MBRead . " Mega Bytes"; - $MBWrite = (real) $status["bytes_written"] / (1024 * 1024); + $MBWrite = (float) $status["bytes_written"] / (1024 * 1024); echo "Total number of bytes sent by this server to network " . $MBWrite . " Mega Bytes"; - $MBSize = (real) $status["limit_maxbytes"] / (1024 * 1024); + $MBSize = (float) $status["limit_maxbytes"] / (1024 * 1024); echo "Number of bytes this server is allowed to use for storage." . $MBSize . " Mega Bytes"; echo "Number of valid items removed from cache to free memory for new items." . $status["evictions"] . ""; echo "";