Merge pull request #67 from mijoharas/feature-fewer-significant-figures-in-sensors

Remove decimal places for sensors.
This commit is contained in:
tobi-wan-kenobi 2017-04-21 07:18:20 +02:00 committed by GitHub
commit 75ce28ddc0

View file

@ -32,7 +32,7 @@ class Module(bumblebee.engine.Module):
matching_temp = self._pattern.findall(temperatures)
temperature = "unknown"
if matching_temp:
temperature = matching_temp[self._match_number]
temperature = int(float(matching_temp[self._match_number]))
return temperature