smartos-manager 1.2.0 → 1.2.1
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 +1 -1
- data/lib/smartos-manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf61b706c57d796a5a2df39a5aa7c07db0dfbb4
|
4
|
+
data.tar.gz: c686d8e945798790aeb17c82ba4ccc018c5d1dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278fab605493db8c106611763cfc1ea8705c364fbab0393eab3d18ada8449473e912b1a9ea2b39e5d203b2d092adc80e1aebff455f9cbb0d43a568975b214558
|
7
|
+
data.tar.gz: c1249230864bcff2bc6732615d9f6dfe4341c9487db27ff11e612893a645711283e1638fba310ab8027c6ea6a76ac8be7a68b9c794e4c45801175f4fdaac0ba1
|
data/lib/smartos-manager/cli.rb
CHANGED
@@ -39,7 +39,7 @@ class AppCLI < Thor
|
|
39
39
|
|
40
40
|
vms.each{|vm| vm_memory += vm.memory }
|
41
41
|
# avail = (mem - vm_memory) - (20 * mem/100.0)
|
42
|
-
avail = (mem - vm_memory) - zfs_arc_reserved
|
42
|
+
avail = [1, (mem - vm_memory) - zfs_arc_reserved].max
|
43
43
|
|
44
44
|
rev = sysinfos[host][:smartos_version]
|
45
45
|
puts "\n#{host.name} [SmartOS: #{rev.send(rev_colors.get(rev))}] (#{host.address}) (#{vms.size} vms) (Total RAM: #{mem.human_size(1).green}, ZFS: #{format_size(zfs_arc_current)}G/#{format_size(zfs_arc_reserved)}G, Avail: #{avail.human_size(1).magenta})"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartos-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Ammous
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|