1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +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

ps: this should really be solved in a more need way, without the need for static arrays
This commit is contained in:
Pavel Labath 2011-10-25 18:53:09 +02:00
parent 951cb1ac7e
commit 4463a100ba
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ set(DEFAULTNETDEV "eth0" CACHE STRING "Default networkdevice")
set(CONFIG_FILE "$HOME/.conkyrc" CACHE STRING "Configfile of the user")
set(MAX_USER_TEXT_DEFAULT "16384" CACHE STRING "Default maximum size of config TEXT buffer, i.e. below TEXT line.")
set(DEFAULT_TEXT_BUFFER_SIZE "256" CACHE STRING "Default size used for temporary, static text buffers")
set(MAX_NET_INTERFACES "16" CACHE STRING "Maximum number of network devices")
set(MAX_NET_INTERFACES "64" CACHE STRING "Maximum number of network devices")
# Platform specific options

View File

@ -55,7 +55,7 @@ struct net_stat {
bool v6show_sc;
#endif /* BUILD_IPV6 */
#if defined(__linux__)
char addrs[273];
char addrs[17 * MAX_NET_INTERFACES + 1];
#endif /* __linux__ */
double net_rec[15], net_trans[15];
// wireless extensions