Bug #1730: Cpu limit as float in CLI

(cherry picked from commit 6a7b6cf1dd)
This commit is contained in:
Carlos Martín committed 2013-07-22 15:50:39 +02:00
1 parent 7658e9cd94
commit 3056486068
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
limit = "0" if limit.nil? || limit == ""
end
"%3.1f / %3.0f" % [d['VM_QUOTA']['VM']["CPU_USED"], limit]
"%3.1f / %3.1f" % [d['VM_QUOTA']['VM']["CPU_USED"], limit]
else
"-"
end
+1 -1
View File
@@ -209,7 +209,7 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
limit = "0" if limit.nil? || limit == ""
end
"%3.1f / %3.0f" % [d['VM_QUOTA']['VM']["CPU_USED"], limit]
"%3.1f / %3.1f" % [d['VM_QUOTA']['VM']["CPU_USED"], limit]
else
"-"
end