1
0
Fork 0

fix-error

This commit is contained in:
liuzhilin 2024-02-27 14:01:01 +08:00
parent 15202dfa69
commit 61c07b7be5
3 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@
# no dynamic tuning, ...
daemon = 1
# Dynamicaly tune devices, if disabled only static tuning will be used.
# Dynamically tune devices, if disabled only static tuning will be used.
dynamic_tuning = 0
# How long to sleep before checking for events (in seconds)
@ -23,7 +23,7 @@ update_interval = 10
recommend_command = 1
# Whether to reapply sysctl from /run/sysctl.d/, /etc/sysctl.d/ and
# /etc/sysctl.conf. If enabled, these sysctls will be re-appliead
# /etc/sysctl.conf. If enabled, these sysctls will be reappliead
# after TuneD sysctls are applied, i.e. TuneD sysctls will not
# override user-provided system sysctls.
reapply_sysctl = 1

View file

@ -1308,7 +1308,7 @@ fi
resolves: rhbz#1144858
- improved error handling of switch_profile
resolves: rhbz#1068699
- tuned-adm: active: detect whether tuned deamon is running
- tuned-adm: active: detect whether tuned daemon is running
related: rhbz#1068699
- removed active_profile from RPM verification
resolves: rhbz#1104126

View file

@ -208,12 +208,12 @@ class commands:
return self.write_to_file(f, data)
# calcualtes md5sum of file 'f'
# calcualates md5sum of file 'f'
def md5sum(self, f):
data = self.read_file(f)
return hashlib.md5(str(data).encode("utf-8")).hexdigest()
# calcualtes sha256sum of file 'f'
# calcualates sha256sum of file 'f'
def sha256sum(self, f):
data = self.read_file(f)
return hashlib.sha256(str(data).encode("utf-8")).hexdigest()
@ -442,7 +442,7 @@ class commands:
return [str(v).replace(r"\,", ",") for v in l]
# Do not make balancing on patched Python 2 interpreter (rhbz#1028122).
# It means less CPU usage on patchet interpreter. On non-patched interpreter
# It means less CPU usage on patched interpreter. On non-patched interpreter
# it is not allowed to sleep longer than 50 ms.
def wait(self, terminate, time):
try: