def get_loadavg():
    if platform.system() == "Linux":
        return open('/proc/loadavg').read().split()[:3]
    else:
        command = "uptime"
        process = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
        stdout = process.communicate()[0].strip()
        # Split on whitespace and commas
        output = re.split("[\s,]+", stdout)
        return output[-3:]
Create a connection to the specified host
dataset/ETHPy150Open graphite-project/carbon/examples/example-pickle-client.py/get_loadavg--crossover with--dataset/ETHPy150Open veegee/amqpy/amqpy/connection.py/Connection.__init__