From 62f3fc6838bf0e59bb490b0da229649bf86d847c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 24 Oct 2008 21:05:12 +0200 Subject: 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. --- config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.h') diff --git a/config.h b/config.h index 9437ef2..fdd95a2 100644 --- a/config.h +++ b/config.h @@ -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); -- cgit v1.2.3