summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-03-01 14:51:11 +0300
committermonsta <[email protected]>2016-03-01 14:51:11 +0300
commit06403e0ad2d232d7612d792bb0e976d373d961f4 (patch)
treebaffb359c061207bb0fb9012bdfcd0ec00e2bb34 /src
parentcb062d03c041122c79950216a1eaa8f263e84a51 (diff)
downloadmate-system-monitor-06403e0ad2d232d7612d792bb0e976d373d961f4.tar.bz2
mate-system-monitor-06403e0ad2d232d7612d792bb0e976d373d961f4.tar.xz
process properties: show cgroups + show N/A when selinux isn't set
from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=f3879a89f9bcc3e96b009c0033accb461c0672ac https://git.gnome.org/browse/gnome-system-monitor/commit/?id=7484244ea470690e52dd5b3ced0ff36917000355
Diffstat (limited to 'src')
-rw-r--r--src/procproperties.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index 3d24ab3..216f299 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -125,9 +125,10 @@ fill_proc_properties (GtkWidget *tree, ProcInfo *info)
{ N_("Nice"), g_strdup_printf("%d", info->nice)},
{ N_("Priority"), g_strdup_printf("%s", procman::get_nice_level(info->nice)) },
{ N_("ID"), g_strdup_printf("%d", info->pid)},
- { N_("Security Context"), g_strdup_printf("%s", info->security_context)},
+ { N_("Security Context"), info->security_context ? g_strdup_printf("%s", info->security_context) : g_strdup(_("N/A"))},
{ N_("Command Line"), g_strdup_printf("%s", info->arguments)},
{ N_("Waiting Channel"), g_strdup_printf("%s", info->wchan)},
+ { N_("Control Group"), info->cgroup_name ? g_strdup_printf("%s", info->cgroup_name) : g_strdup(_("N/A"))},
{ NULL, NULL}
};