68
68
delta_in = traffic["recv_bytes"] - previous_in
69
69
if not delta_out and not delta_in:
72
76
traffic["send_packets"] - previous_packet_out)
73
79
# 28 bytes is the minimum packet size, roughly
74
80
if packets_delta_out * 28 > delta_out:
75
81
delta_out += self._rolloverunit
77
83
traffic["recv_packets"] - previous_packet_in)
78
86
if packets_delta_in * 28 > delta_in:
79
87
delta_in += self._rolloverunit