Discussion:
[PATCH] tuna: Correct allowable ranges in irqview and in procview
John Kacur
2021-03-19 16:38:14 UTC
Permalink
Federico Pellegrin pointed out that spins in Gtk 3.0
need to have defined ranges.

This is a little correction to keep that range from
0 (for SCHED_OTHER)
to 99 for SCHED_FIFO and SCHED_RR

Reported-by: Guy Streeter <***@fedoraproject.org>
Signed-off-by: John Kacur <***@redhat.com>
---
tuna/gui/irqview.py | 2 +-
tuna/gui/procview.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tuna/gui/irqview.py b/tuna/gui/irqview.py
index 8ccae76fa5a1..35fc3fd0b0ca 100755
--- a/tuna/gui/irqview.py
+++ b/tuna/gui/irqview.py
@@ -34,7 +34,7 @@ class irq_druid:
self.window.connect_signals(event_handlers)

self.sched_pri = self.window.get_object("irq_pri_spinbutton")
- self.sched_pri.set_range(0, 127)
+ self.sched_pri.set_range(0, 99)
self.sched_policy = self.window.get_object("irq_policy_combobox")
self.affinity = self.window.get_object("irq_affinity_text")
text = self.window.get_object("irq_text")
diff --git a/tuna/gui/procview.py b/tuna/gui/procview.py
index 199a4f1efd85..7eb347f9d238 100755
--- a/tuna/gui/procview.py
+++ b/tuna/gui/procview.py
@@ -46,7 +46,7 @@ class process_druid:
#self.window.signal_autoconnect(event_handlers)
self.window.connect_signals(event_handlers)
self.sched_pri = self.window.get_object("sched_pri_spin")
- self.sched_pri.set_range(0, 127)
+ self.sched_pri.set_range(0, 99)
self.sched_policy = self.window.get_object("sched_policy_combo")
self.regex_edit = self.window.get_object("cmdline_regex")
self.affinity = self.window.get_object("affinity_text")
--
2.26.3
_______________________________________________
tuna-devel mailing list -- tuna-***@lists.fedorahosted.org
To unsubscribe send an email to tuna-devel-***@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/tuna-***@lists.fedorahosted.org
Do not reply to spam on the list,

Loading...