Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo cou -> cpu

  • Loading branch information...
commit 2882e67b6f6b5acefc82e0cf9d5220a2a241d910 1 parent ffa68ca
@sawanoboly sawanoboly authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 libraries/smartmachine.rb
  2. +1 −1  spec/lib/smartmachine_spec.rb
View
4 libraries/smartmachine.rb
@@ -11,7 +11,7 @@ def zoneinfo
`zoneadm list -p`.split(":")
end
- def kstat_zone_coucaps(id)
+ def kstat_zone_cpucaps(id)
`kstat -p -c zone_caps -n cpucaps_zone_#{id} -s value`
end
@@ -24,7 +24,7 @@ def sm_uuid
end
def sm_cpu_cap
- kstat_zone_coucaps(sm_id).split("\t")[1].to_i
+ kstat_zone_cpucaps(sm_id).split("\t")[1].to_i
end
def sm_cpu_counts
View
2  spec/lib/smartmachine_spec.rb
@@ -9,7 +9,7 @@ def zoneinfo
"69:7b43a1fd-a18b-4fda-a2fd-bda3354f04ff:running:/:7b43a1fd-a18b-4fda-a2fd-bda3354f04ff:native:excl:0".split(":")
end
- def kstat_zone_coucaps(id)
+ def kstat_zone_cpucaps(id)
# `kstat -p -c zone_caps -n cpucaps_zone_#{id} -s value`
"caps:69:cpucaps_zone_69:value\t200\n"
end
Please sign in to comment.
Something went wrong with that request. Please try again.