def rx():
    ifstat = open('/proc/net/dev').readlines()
    for interface in  ifstat:
        #print '----', interface, '-----'
        if INTERFACE in interface:
            stat = float(interface.split()[1])
            STATS[0:] = [stat]