Skip to content

Commit

Permalink
gui add reserved mem range remind
Browse files Browse the repository at this point in the history
  • Loading branch information
iasunsea committed Apr 4, 2023
1 parent fa6c12e commit 573c824
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions com_redhat_kdump/gui/spokes/kdump.glade
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,17 @@
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="rangeReservedMemMB">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="totalMemLabel">
<property name="visible">True</property>
Expand Down
4 changes: 3 additions & 1 deletion com_redhat_kdump/gui/spokes/kdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def initialize(self):
self._autoButton = self.builder.get_object("autoButton")
self._manualButton = self.builder.get_object("manualButton")
self._fadumpButton = self.builder.get_object("fadumpCheck")
self._toBeReservedSpin = self.builder.get_object("toBeReservedSpin")
self._rangeReservedMemMB = self.builder.get_object("rangeReservedMemMB")
self._totalMemMB = self.builder.get_object("totalMemMB")
self._totalMemMB = self.builder.get_object("totalMemMB")
self._usableMemMB = self.builder.get_object("usableMemMB")
self._autoWarn = self.builder.get_object("autoReservationWarning")
Expand All @@ -92,6 +93,7 @@ def initialize(self):
adjustment = Gtk.Adjustment(lower, lower, upper, step, step, 0)
self._toBeReservedSpin.set_adjustment(adjustment)
self._toBeReservedSpin.set_value(lower)
self._rangeReservedMemMB.set_text(" (%d - %d MB)" % (lower, upper))

# Connect a callback to the PropertiesChanged signal.
storage = STORAGE.get_proxy()
Expand Down

0 comments on commit 573c824

Please sign in to comment.