Permalink
Browse files

Fix typos

  • Loading branch information...
1 parent 9d692b1 commit 0518642c032e97128cc625635c39e33bf84933c1 @jwilk jwilk committed Apr 30, 2016
Showing with 13 additions and 13 deletions.
  1. +1 −1 Changelog
  2. +2 −2 DESIGN
  3. +1 −1 README.md
  4. +1 −1 src/MakeLib.mk
  5. +1 −1 src/connection.cpp
  6. +1 −1 src/inode2prog.cpp
  7. +1 −1 src/libnethogs.cpp
  8. +3 −3 src/libnethogs.h
  9. +2 −2 src/nethogs.h
View
@@ -44,7 +44,7 @@ Changelog
-using standard C++ maps instead of custom structures
-many more code cleanups
-documentation
--split up ui code in seperate module
+-split up ui code in separate module
-------------------------------------------------
View
@@ -1,4 +1,4 @@
-Rough design notitions:
+Rough design notes:
decpcap handles pcap. nethogs.cpp asks to be notified of all IPv4 or IPv6
TCP packets.
@@ -25,7 +25,7 @@ table should be updated regularly.
There are some global data structures:
connection.cpp:
- connections. 'ConnList' list containting all currently known connections.
+ connections. 'ConnList' list containing all currently known connections.
A connection removes itself from the global 'connections' list in its
destructor.
View
@@ -8,7 +8,7 @@ Introduction
NetHogs is a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, **it groups bandwidth by process**.
-NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to indentify programs that have gone wild and are suddenly taking up your bandwidth.
+NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth.
Since NetHogs heavily relies on `/proc`, most features are only available on Linux.
NetHogs can be built on Mac OS X, but it will only show connections, not processes.
View
@@ -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)
View
@@ -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;
View
@@ -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);
}
View
@@ -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) &&
View
@@ -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
View
@@ -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

0 comments on commit 0518642

Please sign in to comment.