lwzm
12/22/2015 - 8:17 AM

dstat_patch.diff

<
< # @qwer
< log_hub = os.environ.get("LOG_HUB")
< if log_hub:
<     import socket
<     _udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
<     log_hub = (log_hub, int(os.environ.get("LOG_HUB_PORT", 1514)))
<     udp_sendto = _udp.sendto
<
<
2381,2382d2370
<             oline = oline + o.showcsv() + o.showcsvend(totlist, vislist)
<
2388,2390d2375
<         if log_hub:
<             udp_sendto(oline, log_hub)
<