add fallback to multiprocessing.cpu_count because os.cpu_count is not available before 3.4
This commit is contained in:
parent
b353b5adc9
commit
04fa8b0458
@ -1,5 +1,8 @@
|
||||
from i3pystatus import IntervalModule
|
||||
try:
|
||||
from os import cpu_count
|
||||
except ImportError:
|
||||
from multiprocessing import cpu_count
|
||||
|
||||
|
||||
class Load(IntervalModule):
|
||||
|
Loading…
Reference in New Issue
Block a user