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
|
from i3pystatus import IntervalModule
|
||||||
from os import cpu_count
|
try:
|
||||||
|
from os import cpu_count
|
||||||
|
except ImportError:
|
||||||
|
from multiprocessing import cpu_count
|
||||||
|
|
||||||
|
|
||||||
class Load(IntervalModule):
|
class Load(IntervalModule):
|
||||||
|
Loading…
Reference in New Issue
Block a user