1
0
Fork 0

powertop2tuned: added support for wakeup tuning (in powertop-2.10)

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2019-03-21 23:43:21 +01:00
parent e8393c5c0a
commit 7a2e3c050a
No known key found for this signature in database
GPG key ID: D8E1C00E076E840B

View file

@ -96,7 +96,7 @@ class PowertopHTMLParser(HTMLParser):
def handle_starttag(self, tag, attrs):
self.lastStartTag = tag
if self.lastStartTag == "div" and dict(attrs).get("id") == "tuning":
if self.lastStartTag == "div" and dict(attrs).get("id") in ["tuning", "wakeup"]:
self.inProperTable = True
if self.inProperTable and tag == "td":
self.tdCounter += 1