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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user