Displaying 7 results from an estimated 7 matches for "calc_uptim".
Did you mean:
calc_uptime
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
...ontroller.rb
@@ -96,7 +96,7 @@ class PoolController < ApplicationController
def vms_json(args)
attr_list = [:id, :description, :uuid,
:num_vcpus_allocated, :memory_allocated_in_mb,
- :vnic_mac_addr, :state, :id]
+ :vnic_mac_addr, :state, :calc_uptime, :id]
if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user)
attr_list.insert(3, [:host, :hostname])
end
diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb
index 9d1074a..7188db8 100644
--- a/src/app/controll...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...ontroller.rb
@@ -96,7 +96,7 @@ class PoolController < ApplicationController
def vms_json(args)
attr_list = [:id, :description, :uuid,
:num_vcpus_allocated, :memory_allocated_in_mb,
- :vnic_mac_addr, :state, :id]
+ :vnic_mac_addr, :state, :calc_uptime, :id]
if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user)
attr_list.insert(3, [:host, :hostname])
end
diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb
index 9d1074a..87f07f5 100644
--- a/src/app/controll...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...ontroller.rb
@@ -96,7 +96,7 @@ class PoolController < ApplicationController
def vms_json(args)
attr_list = [:id, :description, :uuid,
:num_vcpus_allocated, :memory_allocated_in_mb,
- :vnic_mac_addr, :state, :id]
+ :vnic_mac_addr, :state, :calc_uptime, :id]
if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user)
attr_list.insert(3, [:host, :hostname])
end
diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb
index 9d1074a..87f07f5 100644
--- a/src/app/controll...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...ontroller.rb
@@ -96,7 +96,7 @@ class PoolController < ApplicationController
def vms_json(args)
attr_list = [:id, :description, :uuid,
:num_vcpus_allocated, :memory_allocated_in_mb,
- :vnic_mac_addr, :state, :id]
+ :vnic_mac_addr, :state, :calc_uptime, :id]
if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user)
attr_list.insert(3, [:host, :hostname])
end
diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb
index 9d1074a..87f07f5 100644
--- a/src/app/controll...
2010 Feb 25
2
[PATCH] Enhance vms display
...trollers/pool_controller.rb
@@ -94,11 +94,11 @@ class PoolController < ApplicationController
end
def vms_json(args)
- attr_list = [:id, :description, :uuid,
+ attr_list = [:id, :description,
:num_vcpus_allocated, :memory_allocated_in_mb,
- :state, :calc_uptime, :id]
+ :state, :contact, :os, :eol, :comment ]
if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user)
- attr_list.insert(3, [:host, :hostname])
+ attr_list.insert(2, [:host, :hostname])
end
json_list(args[:full_items], attr_list, [:all...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with
multiple networks and vice-versa. updated patchset so
as to be applicable against current oVirt server HEAD
these patches may be applied in any order, they all
need to be pushed together
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...ORT_START
- Vm.find(:all,
- :conditions => "forward_vnc_port is not NULL",
- :order => 'forward_vnc_port ASC' ).each{ |vm|
- break if vm.forward_vnc_port > i
- i = i + 1
- }
- return i
- end
-
def self.calc_uptime
"vms.*, case when state='running' then
(cast(total_uptime || ' sec' as interval) +
diff --git a/src/app/models/vm_host_history.rb b/src/app/models/vm_host_history.rb
deleted file mode 100644
index bd61ddc..0000000
--- a/src/app/models/vm_host_history.rb
+++ /dev/n...