Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)