Artificial intelligent assistant

How does nload determine the total traffic? The tool `nload` shows the current, average, minimum, maximum and ttl incoming and outcoming traffic for (a specific) network interface. My questions: * How does nload determine the total data traffic? * How is the current traffic determined? * Is the ttl data simply the up added current traffic or is there a file on a Linux machine which keeps track of this data?

After looking through the source code, the file `devreader.cpp` references:

* sys/socket.h
* time.h
* net/if.h
* netinet/in.h
* arpa/inet.h



It reads in from /sys/class/net and /proc/net/dev. If you want to find out how this works, you will have to find out how the kernel implements this,

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a562879245b009e6e2544c74c3d26268