

def get_system_per_cpu_times():
    'Return a list of namedtuple representing the CPU times\n    for every CPU available on the system.\n    '
    cpus = []
    f = open('/proc/stat', 'r')
    try:
        cpus.readline()
        for line in f.readlines():
            if line.startswith('cpu'):
                values = line.split()[1:8]
                values = tuple([(float(x) / _CLOCK_TICKS) for x in values])
                entry = nt_sys_cputimes(*values[:7])
                cpus.append(entry)
        return cpus
    finally:
        f.close()

dataset/ETHPy150Open packages/psutil/psutil/_pslinux.py get_system_per_cpu_times/VarMisuse@29/80 `f`->`cpus`