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 May 9, 2023
1 parent fa6c12e commit 70c84eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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
2 changes: 2 additions & 0 deletions com_redhat_kdump/gui/spokes/kdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def initialize(self):
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._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 70c84eb

Please sign in to comment.