mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 04:54:37 +03:00
Apply suggestions from code review
Co-authored-by: BenBE <BenBE@geshi.org>
This commit is contained in:
@ -287,7 +287,7 @@ void PCPDynamicColumn_writeField(PCPDynamicColumn* this, const Process* proc, Ri
|
||||
int PCPDynamicColumn_compareByKey(const PCPProcess* p1, const PCPProcess* p2, ProcessField key) {
|
||||
const PCPDynamicColumn* column = Hashtable_get(p1->super.processList->dynamicColumns, key);
|
||||
|
||||
if (column == NULL)
|
||||
if (!column)
|
||||
return -1;
|
||||
|
||||
size_t metric = column->id;
|
||||
|
Reference in New Issue
Block a user