From fd61698b701db87e36f10156a0c26628899e37d7 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 30 Nov 2016 01:26:32 -0500 Subject: [PATCH] bump version and minor fix --- mongoprof.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoprof.py b/mongoprof.py index 3e183b8..219624a 100644 --- a/mongoprof.py +++ b/mongoprof.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -__version__ = '0.2.0' +__version__ = '0.3.0' import time import datetime @@ -18,7 +18,7 @@ def watch(host, dbname, refresh, slowms=0): db = getattr(Connection(host), dbname) # 1 - slow 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() exclude_name = '{0}.system.profile'.format(dbname)