summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-03-22 20:37:08 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-03-22 20:37:08 +0000
commita9c0ea375323a3f801636f95a76afd0fd1328c5d (patch)
tree6c8f551197bc53097e4ab2618ca20eb1fe0f0696 /Settings.c
parentb56195663760d76ea61d9ed15121dd4a13fa68cd (diff)
* Option for counting CPUs from zero
(thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.)
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 164ef7d7..5e07995a 100644
--- a/Settings.c
+++ b/Settings.c
@@ -113,6 +113,8 @@ static bool Settings_read(Settings* this, char* fileName) {
this->pl->detailedCPUTime = atoi(option[1]);
} else if (String_eq(option[0], "detailed_cpu_time")) {
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], "delay")) {
this->delay = atoi(option[1]);
} else if (String_eq(option[0], "color_scheme")) {
@@ -172,6 +174,7 @@ bool Settings_write(Settings* this) {
fprintf(fd, "tree_view=%d\n", (int) this->pl->treeView);
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, "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