diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:21 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:21 +0200 |
commit | 9675cf654d86464344e56705db7a71ea17f76c6f (patch) | |
tree | 86077a344c002694db7ba4f7295d8a64b3601258 /Settings.c | |
parent | 85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (diff) | |
download | debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.tar.gz debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.tar.bz2 debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.zip |
Imported Upstream version 0.6.6+svn20070915upstream/0.6.6+svn20070915
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -139,6 +139,8 @@ bool Settings_read(Settings* this, char* fileName) { this->pl->highlightMegabytes = atoi(option[1]); } else if (String_eq(option[0], "header_margin")) { this->header->margin = atoi(option[1]); + } else if (String_eq(option[0], "expand_system_time")) { + this->pl->expandSystemTime = atoi(option[1]); } else if (String_eq(option[0], "delay")) { this->delay = atoi(option[1]); } else if (String_eq(option[0], "color_scheme")) { @@ -195,6 +197,7 @@ bool Settings_write(Settings* this) { fprintf(fd, "highlight_megabytes=%d\n", (int) this->pl->highlightMegabytes); fprintf(fd, "tree_view=%d\n", (int) this->pl->treeView); fprintf(fd, "header_margin=%d\n", (int) this->header->margin); + fprintf(fd, "expand_system_time=%d\n", (int) this->pl->expandSystemTime); fprintf(fd, "color_scheme=%d\n", (int) this->colorScheme); fprintf(fd, "delay=%d\n", (int) this->delay); fprintf(fd, "left_meters="); @@ -218,6 +221,7 @@ bool Settings_write(Settings* this) { fprintf(fd, "right_meter_modes="); for (int i = 0; i < Header_size(this->header, RIGHT_HEADER); i++) fprintf(fd, "%d ", Header_readMeterMode(this->header, i, RIGHT_HEADER)); + fprintf(fd, "\n"); fclose(fd); return true; } |