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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1280469db0b24e3d8a4bfd499879a1a14a3a5a8
4
- data.tar.gz: 017242b188b773bceea49890884e2864586f1b50
3
+ metadata.gz: fbf61b706c57d796a5a2df39a5aa7c07db0dfbb4
4
+ data.tar.gz: c686d8e945798790aeb17c82ba4ccc018c5d1dfb
5
5
  SHA512:
6
- metadata.gz: fcebf46f92db08808503c3505aae8432ef60e5a140d095f562d4a550dabf974dbef8b0b00630b9e482973c079651c42e179a8e2601c76dce93cb5f7191ccfaf0
7
- data.tar.gz: 66daaf93d2253616b4a659b041259d7cc44cf20df34c71ae04c7019742d3e4cc5150b63900b1df593bf29ebc3fea650e4c343afd9962d2efb3e95afe3a1195fa
6
+ metadata.gz: 278fab605493db8c106611763cfc1ea8705c364fbab0393eab3d18ada8449473e912b1a9ea2b39e5d203b2d092adc80e1aebff455f9cbb0d43a568975b214558
7
+ data.tar.gz: c1249230864bcff2bc6732615d9f6dfe4341c9487db27ff11e612893a645711283e1638fba310ab8027c6ea6a76ac8be7a68b9c794e4c45801175f4fdaac0ba1
@@ -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})"
@@ -1,3 +1,3 @@
1
1
  module SmartosManager
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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-03-18 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb