lib/city_watch/watchmen/disk_usage.rb in city-watch-0.3.1 vs lib/city_watch/watchmen/disk_usage.rb in city-watch-0.3.2
- old
+ new
@@ -2,9 +2,10 @@
include Watchman
def self.data
dat = DF.data
- {:partitions => dat, :summary => dat.select {|d| d[:mounted]=="/"}.first[:capacity]}
+ sum = dat.select {|d| d[:mounted]=="/"}.first
+ {:partitions => dat, :summary => sum[:capacity] || sum["use%".to_sym]}
end
end
\ No newline at end of file