From 61c07b7be54b9ec4edaefc56d0e33da867e1cf7b Mon Sep 17 00:00:00 2001 From: liuzhilin Date: Tue, 27 Feb 2024 14:01:01 +0800 Subject: [PATCH] fix-error --- tuned-main.conf | 4 ++-- tuned.spec | 2 +- tuned/utils/commands.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tuned-main.conf b/tuned-main.conf index c58474f..9cec833 100644 --- a/tuned-main.conf +++ b/tuned-main.conf @@ -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 diff --git a/tuned.spec b/tuned.spec index cc1f424..ed76ecf 100644 --- a/tuned.spec +++ b/tuned.spec @@ -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 diff --git a/tuned/utils/commands.py b/tuned/utils/commands.py index ce51fc0..db8d8b1 100644 --- a/tuned/utils/commands.py +++ b/tuned/utils/commands.py @@ -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: