From 83e96f91359d8112584bc1dda71ff1d18af251ea Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 7 Jan 2019 16:13:24 -0700 Subject: [PATCH] Fix issue #38 --- .bin/Scripts/functions/osticket.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/osticket.py b/.bin/Scripts/functions/osticket.py index ee26bca6..bc207b04 100644 --- a/.bin/Scripts/functions/osticket.py +++ b/.bin/Scripts/functions/osticket.py @@ -14,7 +14,7 @@ KNOWN_DEV_TYPES = ('CPU', 'Disk') # Regex REGEX_BLOCK_GRAPH = re.compile(r'(▁|▂|▃|▄|▅|▆|▇|█)') 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*)$') @@ -113,6 +113,7 @@ class osTicket(): if r: _sensor = '{:<20}'.format(r.group(1)) _temps = r.group(2) + _temps += re.sub(r'\s+(\w+:)', r' ...... \1', r.group(3)) r2 = REGEX_SENSOR.match(_sensor) _sensor = r2.group(1) _spacer = pad_with_dots(r2.group(2))