@@ -466,6 +466,8 @@ static bool Settings_read(Settings* this, const char* fileName, const Machine* h
466466 this -> showCPUUsage = atoi (option [1 ]);
467467 } else if (String_eq (option [0 ], "show_cpu_frequency" )) {
468468 this -> showCPUFrequency = atoi (option [1 ]);
469+ } else if (String_eq (option [0 ], "show_cached_memory" )) {
470+ this -> showCachedMemory = atoi (option [1 ]);
469471 #ifdef BUILD_WITH_CPU_TEMP
470472 } else if (String_eq (option [0 ], "show_cpu_temperature" )) {
471473 this -> showCPUTemperature = atoi (option [1 ]);
@@ -701,6 +703,7 @@ int Settings_write(const Settings* this, bool onCrash) {
701703 printSettingInteger ("show_cpu_temperature" , this -> showCPUTemperature );
702704 printSettingInteger ("degree_fahrenheit" , this -> degreeFahrenheit );
703705 #endif
706+ printSettingInteger ("show_cached_memory" , this -> showCachedMemory );
704707 printSettingInteger ("update_process_names" , this -> updateProcessNames );
705708 printSettingInteger ("account_guest_in_cpu_meter" , this -> accountGuestInCPUMeter );
706709 printSettingInteger ("color_scheme" , this -> colorScheme );
@@ -805,6 +808,7 @@ Settings* Settings_new(const Machine* host, Hashtable* dynamicMeters, Hashtable*
805808 this -> showCPUTemperature = false;
806809 this -> degreeFahrenheit = false;
807810 #endif
811+ this -> showCachedMemory = true;
808812 this -> updateProcessNames = false;
809813 this -> showProgramPath = true;
810814 this -> highlightThreads = true;
0 commit comments