Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved dbregex declaration to other global declarations

  • Loading branch information...
commit 69aff9332d9577993d2aa179ab02100d7c62aef7 1 parent 2ed661d
@bradjasper bradjasper authored
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',
Please sign in to comment.
Something went wrong with that request. Please try again.