in zktraffic/stats/accumulators.py [0:0]
def init_cur_stats(self):
"""Initialize the _cur_stats dictionary with defaults to avoid no data issues"""
self._cur_stats = defaultdict(lambda: defaultdict(int))
self._cur_stats["writes"]["/"] = 0
self._cur_stats["reads"]["/"] = 0
self._cur_stats["total"]["/writes"] = 0
self._cur_stats["total"]["/reads"] = 0
if self._include_bytes:
self._cur_stats["writesBytes"]["/"] = 0
self._cur_stats["readsBytes"]["/"] = 0
self._cur_stats["total"]["/writeBytes"] = 0
self._cur_stats["total"]["/readBytes"] = 0