1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Inconsistent usage of cpus / vpcus in libvirt / requests.

Reported number of cpus was always 1 for libvirt domains.
This commit is contained in:
Romain Vrignaud 2012-11-15 11:04:54 +01:00
parent 397b015257
commit f64b770f00

View file

@ -58,7 +58,7 @@ module Fog
:max_memory_size => dom.info.max_mem,
:cputime => dom.info.cpu_time,
:memory_size => dom.info.memory,
:vcpus => dom.info.nr_virt_cpu,
:cpus => dom.info.nr_virt_cpu,
:autostart => dom.autostart?,
:os_type => dom.os_type,
:active => dom.active?,
@ -89,7 +89,7 @@ module Fog
:max_memory_size => 8,
:cputime => 7,
:memory_size => 6,
:vcpus => 5,
:cpus => 5,
:autostart => false,
:os_type => "RHEL6",
:active => false,