summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-12-18 02:58:34 +0000
committerHisham Muhammad <hisham@gobolinux.org>2013-12-18 02:58:34 +0000
commit8ace29c267bad42bc898152541f7732834b291c2 (patch)
tree342b1e4fb1cb08e5d6838953147be2b180383ae3 /Settings.c
parentaf285d1d3bb182c3f09c70110f4305cb19437245 (diff)
Make CPU meter optionally account guest time in its percentages
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 46b3a971..0a85d584 100644
--- a/Settings.c
+++ b/Settings.c
@@ -128,6 +128,8 @@ static bool Settings_read(Settings* this, char* fileName, int cpuCount) {
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], "account_guest_in_cpu_meter")) {
+ this->pl->accountGuestInCPUMeter = atoi(option[1]);
} else if (String_eq(option[0], "delay")) {
this->delay = atoi(option[1]);
} else if (String_eq(option[0], "color_scheme")) {
@@ -188,6 +190,7 @@ bool Settings_write(Settings* this) {
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, "account_guest_in_cpu_meter=%d\n", (int) this->pl->accountGuestInCPUMeter);
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