mirror of https://github.com/xzeldon/htop.git
Only compute counters is process is shown
This commit is contained in:
parent
a72439c9b7
commit
709619800f
|
@ -671,7 +671,7 @@ static void LinuxProcessList_readDelayAcctData(LinuxProcessList* this, LinuxProc
|
|||
#define READ_COUNTER(_b, _var, _flag, _type, _config) \
|
||||
bool _b ## Ok = false; \
|
||||
uint64_t _b ## Delta = 0; \
|
||||
if (flags & _flag) { \
|
||||
if (flags & _flag && lp->super.show) { \
|
||||
if (!_var) { \
|
||||
_var = PerfCounter_new(lp->super.pid, _type, _config); \
|
||||
_b ## Ok = PerfCounter_read(_var); \
|
||||
|
|
|
@ -126,7 +126,7 @@ void ProcessList_delete(ProcessList* pl);
|
|||
#define READ_COUNTER(_b, _var, _flag, _type, _config) \
|
||||
bool _b ## Ok = false; \
|
||||
uint64_t _b ## Delta = 0; \
|
||||
if (flags & _flag) { \
|
||||
if (flags & _flag && lp->super.show) { \
|
||||
if (!_var) { \
|
||||
_var = PerfCounter_new(lp->super.pid, _type, _config); \
|
||||
_b ## Ok = PerfCounter_read(_var); \
|
||||
|
|
Loading…
Reference in New Issue