Fix typos
This commit is contained in:
@@ -20,7 +20,7 @@ ODIR_BASE := obj
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
# Debug mode options
|
||||
$(info Bulding debug version)
|
||||
$(info Building debug version)
|
||||
ODIR:=$(ODIR_BASE)/lib/debug
|
||||
CFLAGS?=-Wall -Wextra -O0 -g -fPIC $(VISIBILITY)
|
||||
CXXFLAGS?=-Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O0 -g -fPIC $(VISIBILITY) $(CXXINCLUDES)
|
||||
|
||||
@@ -202,7 +202,7 @@ Connection *findConnection(Packet *packet) {
|
||||
* and removes 'old' packets.
|
||||
*
|
||||
* Returns sum of sent packages (by address)
|
||||
* sum of recieved packages (by address)
|
||||
* sum of received packages (by address)
|
||||
*/
|
||||
void Connection::sumanddel(timeval t, u_int32_t *recv, u_int32_t *sent) {
|
||||
(*sent) = (*recv) = 0;
|
||||
|
||||
@@ -196,7 +196,7 @@ void reread_mapping() {
|
||||
DIR *proc = opendir("/proc");
|
||||
|
||||
if (proc == 0) {
|
||||
std::cerr << "Error reading /proc, neede to get inode-to-pid-maping\n";
|
||||
std::cerr << "Error reading /proc, needed to get inode-to-pid-maping\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ static void nethogsmonitor_handle_update(NethogsMonitorCallback cb) {
|
||||
assert(curproc->getVal() != NULL);
|
||||
assert(nproc == processes->size());
|
||||
|
||||
/* remove timed-out processes (unless it's one of the the unknown process)
|
||||
/* remove timed-out processes (unless it's one of the unknown process)
|
||||
*/
|
||||
if ((curproc->getVal()->getLastPacket() + PROCESSTIMEOUT <=
|
||||
curtime.tv_sec) &&
|
||||
|
||||
@@ -32,9 +32,9 @@ typedef struct NethogsMonitorRecord {
|
||||
|
||||
/**
|
||||
* @brief Defines a callback to handle updates about applications
|
||||
* @param action NETHOGS_APP_ACTION_SET if data is beeing added or updated,
|
||||
* NETHOGS_APP_ACTION_REMOVE if data is beeing removed.
|
||||
* the record_id member is used to uniquely identify the data beeing
|
||||
* @param action NETHOGS_APP_ACTION_SET if data is being added or updated,
|
||||
* NETHOGS_APP_ACTION_REMOVE if data is being removed.
|
||||
* the record_id member is used to uniquely identify the data being
|
||||
* update or removed.
|
||||
* @param data a pointer to an application usage data. the pointer remains valid
|
||||
* until
|
||||
|
||||
@@ -41,11 +41,11 @@
|
||||
/* take the average speed over the last 5 seconds */
|
||||
#define PERIOD 5
|
||||
|
||||
/* the amount of time after the last packet was recieved
|
||||
/* the amount of time after the last packet was received
|
||||
* after which a process is removed */
|
||||
#define PROCESSTIMEOUT 150
|
||||
|
||||
/* the amount of time after the last packet was recieved
|
||||
/* the amount of time after the last packet was received
|
||||
* after which a connection is removed */
|
||||
#define CONNTIMEOUT 50
|
||||
|
||||
|
||||
Reference in New Issue
Block a user