@mod.route('/')
def index():
    uptime = datetime.now() - datetime.fromtimestamp(psutil.get_boot_time())
    return render_template('system/system.html',
            uptime = str(uptime).split('.')[0],
            load = os.getloadavg(),
            net = psutil.net_io_counters(),
            memory = psutil.virtual_memory(),
            swap = psutil.swap_memory(),
        )
dataset/ETHPy150Open rangermeier/flaskberry/flaskberry/views/system.py/index/original