Browse Source

Fix cpu_num variable. Add calculate kernel param domain and domain_pw.

develop
Mike Hiretsky 11 years ago
parent
commit
ad4c8eb252
  1. 2
      pym/cl_fill.py
  2. 2
      pym/cl_vars_share.py

2
pym/cl_fill.py

@ -282,7 +282,7 @@ class fillVars(varsShare):
cpuinfoFile = "/proc/cpuinfo"
try:
return len(["" for line in open(cpuinfoFile,"r").readlines()
if "processor" in line])
if line.startswith("processor")])
except:
return 1

2
pym/cl_vars_share.py

@ -400,7 +400,7 @@ class varsShare:
cmdLine = "/proc/cmdline"
calculateParam = "calculate"
names = ("lang","keymap","timezone",
"resolution","video","composite")
"resolution","video","composite","domain","domain_pw")
# try get timezone from kernel calculate param
try:
if type(num) == str and not num.isdigit():

Loading…
Cancel
Save