[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Scott Seago wrote:
Signed-off-by: Scott Seago <sseago 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

WFM, Ack and I pushed this :)

Perry

--
|=-        Red Hat, Engineering, Emerging Technologies, Boston        -=|
|=-                     Email: pmyers redhat com                      -=|
|=-         Office: +1 412 474 3552   Mobile: +1 703 362 9622         -=|
|=- GnuPG: E65E4F3D 88F9 F1C9 C2F3 1303 01FE 817C C5D2 8B91 E65E 4F3D -=|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]