Browse files

moved dbregex declaration to other global declarations

  • Loading branch information...
1 parent 2ed661d commit 69aff9332d9577993d2aa179ab02100d7c62aef7 @bradjasper bradjasper committed Jan 24, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 redis_stats.py
View
3 redis_stats.py
@@ -39,13 +39,12 @@
from redis import Redis
from redis.exceptions import RedisError
-dbregex = re.compile(r'db\d+')
-
parser = optparse.OptionParser()
parser.add_option('--host', help='Redis host', default='localhost')
parser.add_option('--port', help='Redis port', type='int', default=6379)
(options, args) = parser.parse_args()
+dbregex = re.compile(r'db\d+')
metrics = {
'blocked_clients': 'int',
'changes_since_last_save': 'int',

0 comments on commit 69aff93

Please sign in to comment.