Be more efficient about allocating duplicate stuff and on the stack vs heap
This commit is contained in:
@@ -26,12 +26,11 @@
|
||||
* quickly, too :) */
|
||||
|
||||
#include "nethogs.h"
|
||||
// #define PROGNAME_WIDTH 200
|
||||
|
||||
struct prg_node {
|
||||
long inode;
|
||||
int pid;
|
||||
char name[PROGNAME_WIDTH];
|
||||
pid_t pid;
|
||||
char * name;
|
||||
};
|
||||
|
||||
struct prg_node * findPID (unsigned long inode);
|
||||
|
||||
Reference in New Issue
Block a user