mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-07 19:03:06 +00:00
8 lines
284 B
Python
8 lines
284 B
Python
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
def callback(simulator):
|
||
|
simulator.log("Network update!")
|
||
|
L=simulator.netmat["wlan0"]["latency"]
|
||
|
new_bw_wlan0=simulator.netmat["wlan0"]["bandwidth"]*2
|
||
|
simulator.update_network({"wlan0":{"bandwidth":new_bw_wlan0, "latency":L, "is_wired":False}})
|