openwrt-openwisp-monitoring
openwrt-openwisp-monitoring copied to clipboard
[change] Introduce random pause in sending of accumulated data
trafficstars
Introduce random pause in sending of accumulated data at the end of this loop: https://github.com/openwisp/openwrt-openwisp-monitoring/blob/adf28d536fd61c22ca4f021233e9d8c0bbb49d06/openwisp-monitoring/files/monitoring.agent#L122
The pause should be introduced only every 10 requests, it shall be of a random amount of seconds, comprised between 1 and 5 and it shall be introduced only if the sending was successful.