9 Commits (74c4f4ebdae8a12fc95840954dde574692234b01)

Author SHA1 Message Date
Laslo Hunhold 68a3902dc5 Increase precision in netspeeds.c
First dividing by interval before multiplying with 1000 decreases the
precision by +-(interval - 1) * 1000, as interval arithmetic always
applies the Gauß-function to the result.

This is not necessary and simply reordering the operations mitigates
this.
8 years ago
Laslo Hunhold 422cadfd5f Implement esnprintf() and make formatted calls more efficient
Within the components, snprintf() was unchecked and had inefficient
calls in some places.
We implement esnprintf() that does all the dirty laundry for us
and use it exclusively now.
8 years ago
Aaron Marcher d47d78255e Use `int` for flags 8 years ago
Aaron Marcher 06d4447f03 Set {r,t}xbytes 0 before incrementing them on OBSD 8 years ago
Aaron Marcher a37224bf7b Missing assignment for last commit 8 years ago
Aaron Marcher e3ccac3298 Unify and simplify netspeed logic and types 8 years ago
Tobias Tschinkowitz 2321aecff0 netspeeds: added error condition for openbsd
implemented additional error condition for openbsd netstat in case the
interface could not be found in the interface list or if_data is not
readable.
8 years ago
Tobias Tschinkowitz 22175f0d57 implemented openbsd netspeed functions
implemented the netspeed functionality for openbsd.
furthermore the static keyword was removed of the interval variable in
config.def.h for usage as extern variable.
8 years ago
Aaron Marcher 0d05b3d13d Add network speed functions 8 years ago