[Ovirt-devel] [PATCH] fixed cpu speed value for hosts grid.

Scott Seago sseago at redhat.com
Fri Dec 5 21:58:53 UTC 2008


Signed-off-by: Scott Seago <sseago at redhat.com>
---
 src/app/models/host.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/models/host.rb b/src/app/models/host.rb
index 429f0c0..640782d 100644
--- a/src/app/models/host.rb
+++ b/src/app/models/host.rb
@@ -85,7 +85,7 @@ class Host < ActiveRecord::Base
   end
 
   def cpu_speed
-    "FIX ME!"
+    cpus[0].speed unless cpus.empty?
   end
 
   def display_name
-- 
1.6.0.4




More information about the ovirt-devel mailing list