From 9ff5d2b243472ae73d10dafdd7c0e24dc5052f6d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 16 Mar 2015 23:01:21 -0300 Subject: Fix saving of header states, motion in Setup screen. --- Settings.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Settings.c') diff --git a/Settings.c b/Settings.c index 41d8738a..0f31223f 100644 --- a/Settings.c +++ b/Settings.c @@ -109,6 +109,7 @@ static void Settings_defaultMeters(Settings* this, int cpuCount) { for (int i = 0; i < 2; i++) { this->columns[i].names = calloc(sizes[i], sizeof(char*)); this->columns[i].modes = calloc(sizes[i], sizeof(int)); + this->columns[i].len = sizes[i]; } int r = 0; @@ -371,6 +372,7 @@ Settings* Settings_new(int cpuCount) { this->hideKernelThreads = true; this->highlightMegabytes = true; this->highlightThreads = false; + this->headerMargin = true; } } free(legacyDotfile); -- cgit v1.2.3