Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add new aliases for SystemInfo.num_*processors

  • Loading branch information...
commit d5ac9c02ce4f2e3d8060699c91b7fe71b1759253 1 parent d8fc7aa
@ferrous26 ferrous26 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/accessibility/system_info.rb
View
2  lib/accessibility/system_info.rb
@@ -138,6 +138,7 @@ def uptime
def num_processors
NSProcessInfo.processInfo.processorCount
end
+ alias_method :number_of_processors, :num_processors
##
# Number of CPUs the system current has enabled
@@ -150,6 +151,7 @@ def num_processors
def num_active_processors
NSProcessInfo.processInfo.activeProcessorCount
end
+ alias_method :number_of_active_processors, :num_active_processors
##
# Total amount of memory for the system, in bytes
Please sign in to comment.
Something went wrong with that request. Please try again.