def nproc():
    '''
    Return the number of processing units available on this system

    CLI Example:

    .. code-block:: bash

        salt '*' status.nproc
    '''
    try:
        return int(__salt__['cmd.run']('nproc').strip())
    except __HOLE__:
        return 0
dataset/ETHPy150Open saltstack/salt/salt/modules/status.py/nproc