Skip to content

Commit

Permalink
Merge pull request #608 from liuzhilin12/master
Browse files Browse the repository at this point in the history
fix-error
  • Loading branch information
yarda authored Feb 27, 2024
2 parents 15202df + 61c07b7 commit 86ac977
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tuned-main.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tuned.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tuned/utils/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ def add_modify_option_in_file(self, f, d, add = True):

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()
Expand Down Expand Up @@ -442,7 +442,7 @@ def devstr2devs(self, s):
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:
Expand Down

0 comments on commit 86ac977

Please sign in to comment.