mirror of
https://github.com/erpalma/throttled.git
synced 2026-03-18 02:34:48 +01:00
fix #66
This commit is contained in:
parent
671e252198
commit
0189170a40
|
|
@ -5,6 +5,7 @@ import argparse
|
|||
import configparser
|
||||
import dbus
|
||||
import glob
|
||||
import gzip
|
||||
import os
|
||||
import re
|
||||
import struct
|
||||
|
|
@ -480,7 +481,7 @@ def check_kernel():
|
|||
kernel_config = f.read()
|
||||
except IOError:
|
||||
try:
|
||||
with open(os.path.join('/proc', 'config.gz')) as f:
|
||||
with gzip.open(os.path.join('/proc', 'config.gz')) as f:
|
||||
kernel_config = f.read()
|
||||
except IOError:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue