Closed shadu120 closed 1 year ago
My server has:
tun0 and wg0 is runing one eth0.
tun0
wg0
eth0
Current logic:
def get_network_io(): io = net_io_counters() return io.bytes_sent + database.get_parameter('upload_amount_synchronizer') \ , io.bytes_recv + database.get_parameter('download_amount_synchronizer')
This script count all the traffic of Ethernets, but not a specific one, such as "eth0". Namizun should allow user to customize which physic networks shoud be counted in list.
An option logic Current logic:
def get_network_io(): io = net_io_counters(pernic=True)['eth0'] return io.bytes_sent + database.get_parameter('upload_amount_synchronizer') \ , io.bytes_recv + database.get_parameter('download_amount_synchronizer')
Hello I will rewrite the script again and create a new scenario that includes Docker
For this issue, I will do something that will not be a problem
My server has:
tun0
andwg0
is runing oneeth0
.Current logic:
This script count all the traffic of Ethernets, but not a specific one, such as "eth0". Namizun should allow user to customize which physic networks shoud be counted in list.
An option logic Current logic: