smartos-manager 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartos-manager/cli.rb +6 -1
- data/lib/smartos-manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 459e0cd7f79202dc121bf3cd7ba3aeb2d7c71a8f
|
4
|
+
data.tar.gz: 5c48f58ca43f669dfe5c54d25e03a55add060598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f70d8f7e1bb6b5a52c88933911699837dae91425da69ae0776fd2e5ca21ffd56da4c97ddfb97eca383f30604acfab274ba9d7a00f025c5f4203952ed1a1ef3a
|
7
|
+
data.tar.gz: 0d003bc12d776a841d2b4c4d93591720f784e3624fd1c49900521070cfdfad447d5d19b707683af356eef57d6ecbcb1c6256fb47eef1fb9c0d30f632c543bb20
|
data/lib/smartos-manager/cli.rb
CHANGED
@@ -77,7 +77,12 @@ class AppCLI < Thor
|
|
77
77
|
vm_disk_label = "#{vm_disk[:quota]}"
|
78
78
|
end
|
79
79
|
|
80
|
-
|
80
|
+
if vm.rss
|
81
|
+
tmp = vm.rss.human_size(1)
|
82
|
+
else
|
83
|
+
tmp = "-"
|
84
|
+
end
|
85
|
+
formatted_mem = "#{tmp.ljust(5)} / #{vm.memory.human_size(1).ljust(5)}"
|
81
86
|
|
82
87
|
p_vm_list(formatted_mem, vm.name, vm.type, vm.uuid, vm.state, vm.admin_ip, vm_disk_label, *user_columns)
|
83
88
|
end
|