def read_bandwidthOUT(): """ Reads today's outgoing bandwidth stats from disk """ global BandOutDict dhnio.Dprint(6, "bandwidth.read_bandwidthOUT ") for idurl, bytes in dhnio._read_dict(filenameOUT(), {}).items(): BandOutDict[idurl] = int(bytes)
def read_bandwidthIN(): """ Reads today's incoming bandwidth stats from disk """ global BandInDict dhnio.Dprint(6, "bandwidth.read_bandwidthIN ") for idurl, bytes in dhnio._read_dict(filenameIN(), {}).items(): BandInDict[idurl] = int(bytes)