[gnome-system-monitor] properties: better display for empty cgroup and selinux props
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] properties: better display for empty cgroup and selinux props
- Date: Thu, 12 Dec 2013 11:54:35 +0000 (UTC)
commit 7484244ea470690e52dd5b3ced0ff36917000355
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Mon Dec 9 15:55:01 2013 +0100
properties: better display for empty cgroup and selinux props
Match the output of non available writable memory and display "N/A"
instead of an empty string or (null).
https://bugzilla.gnome.org/show_bug.cgi?id=720105
src/procproperties.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index c3e0316..76fa1e4 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -98,10 +98,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_("Control Group"), info->cgroup_name?g_strdup_printf("%s",
info->cgroup_name):g_strdup(_("N/A"))},
{ NULL, NULL}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]