@ -45,6 +45,7 @@ typedef struct Settings_ {
bool countCPUsFromZero ;
bool detailedCPUTime ;
bool showCPUFrequency ;
bool treeView ;
bool showProgramPath ;
bool hideThreads ;
@ -223,6 +224,8 @@ static bool Settings_read(Settings* this, const char* fileName) {
this - > detailedCPUTime = atoi ( option [ 1 ] ) ;
} else if ( String_eq ( option [ 0 ] , " cpu_count_from_zero " ) ) {
this - > countCPUsFromZero = atoi ( option [ 1 ] ) ;
} else if ( String_eq ( option [ 0 ] , " show_cpu_frequency " ) ) {
this - > showCPUFrequency = atoi ( option [ 1 ] ) ;
} else if ( String_eq ( option [ 0 ] , " update_process_names " ) ) {
this - > updateProcessNames = atoi ( option [ 1 ] ) ;
} else if ( String_eq ( option [ 0 ] , " account_guest_in_cpu_meter " ) ) {
@ -312,6 +315,7 @@ bool Settings_write(Settings* this) {
fprintf ( fd , " header_margin=%d \n " , ( int ) this - > headerMargin ) ;
fprintf ( fd , " detailed_cpu_time=%d \n " , ( int ) this - > detailedCPUTime ) ;
fprintf ( fd , " cpu_count_from_zero=%d \n " , ( int ) this - > countCPUsFromZero ) ;
fprintf ( fd , " show_cpu_frequency=%d \n " , ( int ) this - > showCPUFrequency ) ;
fprintf ( fd , " update_process_names=%d \n " , ( int ) this - > updateProcessNames ) ;
fprintf ( fd , " account_guest_in_cpu_meter=%d \n " , ( int ) this - > accountGuestInCPUMeter ) ;
fprintf ( fd , " color_scheme=%d \n " , ( int ) this - > colorScheme ) ;
@ -340,6 +344,7 @@ Settings* Settings_new(int cpuCount) {
this - > highlightMegabytes = false ;
this - > detailedCPUTime = false ;
this - > countCPUsFromZero = false ;
this - > showCPUFrequency = false ;
this - > updateProcessNames = false ;
this - > cpuCount = cpuCount ;
this - > showProgramPath = true ;