city-watch 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,8 @@ class DiskUsage
4
4
 
5
5
  def self.data
6
6
  dat = DF.data
7
- {:partitions => dat, :summary => dat.select {|d| d[:mounted]=="/"}.first[:capacity]}
7
+ sum = dat.select {|d| d[:mounted]=="/"}.first
8
+ {:partitions => dat, :summary => sum[:capacity] || sum["use%".to_sym]}
8
9
  end
9
10
 
10
11
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CityWatch
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: city-watch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.1
5
+ version: 0.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Bragg