1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-10 16:08:31 +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:
Pavel Labath 2011-10-25 18:53:09 +02:00
parent 1248fd2139
commit f6aac5981e
2 changed files with 2 additions and 2 deletions

View File

@ -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_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(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(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
dnl Some functions dnl Some functions

View File

@ -41,7 +41,7 @@ struct net_stat {
double recv_speed, trans_speed; double recv_speed, trans_speed;
struct sockaddr addr; struct sockaddr addr;
#if defined(__linux__) #if defined(__linux__)
char addrs[273]; char addrs[17 * MAX_NET_INTERFACES + 1];
#endif /* __linux__ */ #endif /* __linux__ */
double net_rec[15], net_trans[15]; double net_rec[15], net_trans[15];
// wireless extensions // wireless extensions