summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-10-20 00:43:25 +0000
committerHisham Muhammad <hisham@gobolinux.org>2012-10-20 00:43:25 +0000
commitf44a8f2009e443349655e32512ef1dc453f3fa22 (patch)
tree1170ac0c98bab6490cd72c34c33046349b74c669 /Settings.c
parent1b21827f1f875692e14ee5ac9b22f3fd69fd8593 (diff)
Option to update process names on every refresh
(thanks to Rob Hoelz)
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Settings.c b/Settings.c
index 4782e84b..fd200a7c 100644
--- a/Settings.c
+++ b/Settings.c
@@ -124,6 +124,8 @@ static bool Settings_read(Settings* this, char* fileName, int cpuCount) {
this->pl->detailedCPUTime = atoi(option[1]);
} else if (String_eq(option[0], "cpu_count_from_zero")) {
this->pl->countCPUsFromZero = atoi(option[1]);
+ } else if (String_eq(option[0], "update_process_names")) {
+ this->pl->updateProcessNames = atoi(option[1]);
} else if (String_eq(option[0], "delay")) {
this->delay = atoi(option[1]);
} else if (String_eq(option[0], "color_scheme")) {
@@ -183,6 +185,7 @@ bool Settings_write(Settings* this) {
fprintf(fd, "header_margin=%d\n", (int) this->header->margin);
fprintf(fd, "detailed_cpu_time=%d\n", (int) this->pl->detailedCPUTime);
fprintf(fd, "cpu_count_from_zero=%d\n", (int) this->pl->countCPUsFromZero);
+ fprintf(fd, "update_process_names=%d\n", (int) this->pl->updateProcessNames);
fprintf(fd, "color_scheme=%d\n", (int) this->colorScheme);
fprintf(fd, "delay=%d\n", (int) this->delay);
fprintf(fd, "left_meters=");

© 2014-2024 Faster IT GmbH | imprint | privacy policy