mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Bug #1730: Cpu limit as float in CLI
(cherry picked from commit 6a7b6cf1dde243f53f6f9d0257b7fd8793bd6a57)
This commit is contained in:
parent
7658e9cd94
commit
3056486068
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user