def nproc():
 try:
  return _number(__salt__['cmd.run']('nproc').strip())
 except ValueError:
  return 0

def nproc ( ) : try : return _number ( __salt__ [ 'cmd.run' ] ( 'nproc' ) . strip ( ) ) except ValueError : return 0
return the number of processing units available on this system cli example: .