set reading /proc/uptime to false by default.

reading /proc/uptime is going to be slower, and no reason to do it on most
things.  Better to only do it when you suspect maybe a need for it.
This commit is contained in:
Scott Moser
2013-07-30 14:28:09 -04:00
parent d09712ac24
commit 67224e3dcd
3 changed files with 6 additions and 6 deletions

View File

@@ -1772,7 +1772,7 @@ def which(program):
return None
def log_time(logfunc, msg, func, args=None, kwargs=None, get_uptime=True):
def log_time(logfunc, msg, func, args=None, kwargs=None, get_uptime=False):
if args is None:
args = []
if kwargs is None: