CPUMeter: avoid crashes and leaks in case the CPU count changes

E.g. if the HT/SMT mode changes

Use separate data for sub-meters
Do not reuse drawData for maintainability
This commit is contained in:
Christian Göttsche
2020-09-23 11:58:11 +02:00
committed by cgzones
parent 0b9a001498
commit 9f5b50edd7
2 changed files with 39 additions and 19 deletions

View File

@ -71,6 +71,7 @@ struct Meter_ {
char curItems;
double* values;
double total;
void* meterData;
};
typedef struct MeterMode_ {