diff options
author | Michael Stapelberg <michael+x200@stapelberg.de> | 2008-10-24 21:05:12 +0200 |
---|---|---|
committer | Michael Stapelberg <michael+x200@stapelberg.de> | 2008-10-24 21:05:20 +0200 |
commit | 62f3fc6838bf0e59bb490b0da229649bf86d847c (patch) | |
tree | 5ddd40aa8bf1abac9fd4f1d2627cb21b1c01e413 /config.h | |
parent | 753144d58b5b7edb104f78b0c0331ad150fcdb7c (diff) |
Implement getting current speed from network interfaces
The network interface must be supported by ethtool, as its syscall is
used for this. This is at least the case for e1000 cards.
Unfortunately, getting the speed needs root privileges. Therefore, you
have to enable it in configuration separately.
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ extern const char order[MAX_ORDER][2]; extern unsigned int interval; extern bool use_colors; +extern bool get_ethspeed; #endif char *glob_path(const char *path); |