Fix issue #38
This commit is contained in:
parent
b1e5727d54
commit
83e96f9135
1 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ KNOWN_DEV_TYPES = ('CPU', 'Disk')
|
||||||
# Regex
|
# Regex
|
||||||
REGEX_BLOCK_GRAPH = re.compile(r'(▁|▂|▃|▄|▅|▆|▇|█)')
|
REGEX_BLOCK_GRAPH = re.compile(r'(▁|▂|▃|▄|▅|▆|▇|█)')
|
||||||
REGEX_NVME_SMART_ATTRIBUTES = re.compile(r'^\s*(\d+) / (\w+): (.{28})(.*)$')
|
REGEX_NVME_SMART_ATTRIBUTES = re.compile(r'^\s*(\d+) / (\w+): (.{28})(.*)$')
|
||||||
REGEX_TEMPS = re.compile(r'^\s*(.*?)\s+(idle.*)$')
|
REGEX_TEMPS = re.compile(r'^\s*(.*?)\s+(idle:)(.*)$')
|
||||||
REGEX_SENSOR = re.compile(r'^(.*?)(\s*)$')
|
REGEX_SENSOR = re.compile(r'^(.*?)(\s*)$')
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -113,6 +113,7 @@ class osTicket():
|
||||||
if r:
|
if r:
|
||||||
_sensor = '{:<20}'.format(r.group(1))
|
_sensor = '{:<20}'.format(r.group(1))
|
||||||
_temps = r.group(2)
|
_temps = r.group(2)
|
||||||
|
_temps += re.sub(r'\s+(\w+:)', r' ...... \1', r.group(3))
|
||||||
r2 = REGEX_SENSOR.match(_sensor)
|
r2 = REGEX_SENSOR.match(_sensor)
|
||||||
_sensor = r2.group(1)
|
_sensor = r2.group(1)
|
||||||
_spacer = pad_with_dots(r2.group(2))
|
_spacer = pad_with_dots(r2.group(2))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue