mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 09:08:25 +00:00
Increase MAX_NET_INTERFACES to 64
also change a magic constant in net_stat.h to reflect the fact that it depends on MAX_NET_INTERFACES. For more info, see sf.net #2872682 and gentoo bug #384505
This commit is contained in:
parent
1248fd2139
commit
f6aac5981e
@ -802,7 +802,7 @@ AC_DEFINE(CONFIG_FILE, "$HOME/.conkyrc", [Configfile of the user])
|
||||
AC_DEFINE(MAX_SPECIALS_DEFAULT, 512, [Default maximum number of special things, e.g. fonts, offsets, aligns, etc.])
|
||||
AC_DEFINE(MAX_USER_TEXT_DEFAULT, 16384, [Default maximum size of config TEXT buffer, i.e. below TEXT line.])
|
||||
AC_DEFINE(DEFAULT_TEXT_BUFFER_SIZE, 256, [Default size used for temporary, static text buffers])
|
||||
AC_DEFINE(MAX_NET_INTERFACES, 16, [Maximum number of network devices])
|
||||
AC_DEFINE(MAX_NET_INTERFACES, 64, [Maximum number of network devices])
|
||||
|
||||
dnl
|
||||
dnl Some functions
|
||||
|
@ -41,7 +41,7 @@ struct net_stat {
|
||||
double recv_speed, trans_speed;
|
||||
struct sockaddr addr;
|
||||
#if defined(__linux__)
|
||||
char addrs[273];
|
||||
char addrs[17 * MAX_NET_INTERFACES + 1];
|
||||
#endif /* __linux__ */
|
||||
double net_rec[15], net_trans[15];
|
||||
// wireless extensions
|
||||
|
Loading…
x
Reference in New Issue
Block a user