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:
parent
951cb1ac7e
commit
4463a100ba
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user