mirror of https://github.com/xzeldon/htop.git
bf853addc3
It can happen that pcp-htop is presented multiple definitions of the same dynamic meter, e.g. if /etc/pcp/htop/meters has a definition matching one in ~/.config/htop/meters - instead of exiting with a duplicate metric error provide more meaningful diagnostics (on close) and also just skip over such entries. System files override home directories which overrides those found below the current working directory. Also fix the derived metric error diagnostic; because this is using CRT_fatalError, which is like perror(3), we must give a meaningful prefix (like program name) at the string end. |
||
---|---|---|
.. | ||
meters | ||
PCPDynamicMeter.c | ||
PCPDynamicMeter.h | ||
PCPProcess.c | ||
PCPProcess.h | ||
PCPProcessList.c | ||
PCPProcessList.h | ||
Platform.c | ||
Platform.h | ||
ProcessField.h |