diff options
-rw-r--r-- | README.markdown | 7 | ||||
-rw-r--r-- | overview.php | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index d9bbe2b..a46270d 100644 --- a/README.markdown +++ b/README.markdown @@ -33,6 +33,13 @@ php composer.phar install You may also want to copy include/config.simple.inc.php to include/config.inc.php and edit it with your specific redis configuration. +Instead of using [composer](http://getcomposer.org/) you can also do a manual install using: + +``` +git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git +cd phpRedisAdmin +git clone https://github.com/nrk/predis.git vendor +``` TODO ==== diff --git a/overview.php b/overview.php index 68512ec..b9129e6 100644 --- a/overview.php +++ b/overview.php @@ -32,6 +32,18 @@ foreach ($config['servers'] as $i => $server) { $info[$i] = $redis->info(); $info[$i]['size'] = $redis->dbSize(); + + if (!isset($info[$i]['Server'])) { + $info[$i]['Server'] = array( + 'redis_version' => $info[$i]['redis_version'], + 'uptime_in_seconds' => $info[$i]['uptime_in_seconds'] + ); + } + if (!isset($info[$i]['Memory'])) { + $info[$i]['Memory'] = array( + 'used_memory' => $info[$i]['used_memory'] + ); + } } |