Skip to content

Commit

Permalink
Restrict supported modes for (more) text-only meters
Browse files Browse the repository at this point in the history
Limit display to Text mode only for:
* linux/SELinuxMeter.c
* linux/SystemdMeter.c
  • Loading branch information
Explorer09 committed May 2, 2024
1 parent c75e4d7 commit 252c882
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion linux/SELinuxMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ const MeterClass SELinuxMeter_class = {
},
.updateValues = SELinuxMeter_updateValues,
.defaultMode = TEXT_METERMODE,
.supportedModes = (1 << TEXT_METERMODE),
.maxItems = 0,
.total = 100.0,
.total = 0.0,
.attributes = SELinuxMeter_attributes,
.name = "SELinux",
.uiName = "SELinux",
Expand Down
6 changes: 4 additions & 2 deletions linux/SystemdMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,9 @@ const MeterClass SystemdMeter_class = {
.updateValues = SystemdMeter_updateValues,
.done = SystemdMeter_done,
.defaultMode = TEXT_METERMODE,
.supportedModes = (1 << TEXT_METERMODE),
.maxItems = 0,
.total = 100.0,
.total = 0.0,
.attributes = SystemdMeter_attributes,
.name = "Systemd",
.uiName = "Systemd state",
Expand All @@ -426,8 +427,9 @@ const MeterClass SystemdUserMeter_class = {
.updateValues = SystemdMeter_updateValues,
.done = SystemdMeter_done,
.defaultMode = TEXT_METERMODE,
.supportedModes = (1 << TEXT_METERMODE),
.maxItems = 0,
.total = 100.0,
.total = 0.0,
.attributes = SystemdMeter_attributes,
.name = "SystemdUser",
.uiName = "Systemd user state",
Expand Down

0 comments on commit 252c882

Please sign in to comment.