bump version and minor fix
This commit is contained in:
parent
77595725c4
commit
fd61698b70
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
__version__ = '0.2.0'
|
__version__ = '0.3.0'
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import datetime
|
import datetime
|
||||||
@ -18,7 +18,7 @@ def watch(host, dbname, refresh, slowms=0):
|
|||||||
db = getattr(Connection(host), dbname)
|
db = getattr(Connection(host), dbname)
|
||||||
# 1 - slow operations
|
# 1 - slow operations
|
||||||
# 2 - all operations
|
# 2 - all operations
|
||||||
db.set_profiling_level(1 if slowms else 2, slowms or 100)
|
db.set_profiling_level(1 if slowms else 2, slowms)
|
||||||
last_ts = datetime.datetime.utcnow()
|
last_ts = datetime.datetime.utcnow()
|
||||||
exclude_name = '{0}.system.profile'.format(dbname)
|
exclude_name = '{0}.system.profile'.format(dbname)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user