mirror of https://github.com/nicolargo/glances.git
Make the issue3290 compliant with non Linux OS
This commit is contained in:
parent
48674ee71f
commit
38c7bfccba
|
|
@ -595,6 +595,9 @@ def exit_after(seconds, default=None):
|
|||
q.put(func(*args, **kwargs))
|
||||
|
||||
def decorator(func):
|
||||
if not LINUX:
|
||||
return func
|
||||
|
||||
def wraps(*args, **kwargs):
|
||||
q = Queue()
|
||||
p = Process(target=handler, args=(q, func, args, kwargs))
|
||||
|
|
|
|||
Loading…
Reference in New Issue