mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Bug #1730: Cpu limit as float in CLI
(cherry picked from commit 6a7b6cf1dd)
This commit is contained in:
1 parent
7658e9cd94
commit
3056486068
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user