server_metrics 1.2.14.pre0 → 1.2.14.pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88a82742a5020e4f14ca867581f2b45139bc0a87
4
- data.tar.gz: 3d140a2097c994753f09edc7793219d89a052759
3
+ metadata.gz: a44ceb0add726ecd87589c72c59bff97a305d1af
4
+ data.tar.gz: 238cd60bd38fed9f73fd691584dd69c0aa740c4d
5
5
  SHA512:
6
- metadata.gz: 66940f2ac63d6e09f5b9cc8c01ff4e8ef58260e527b5253a70c8170c3bfa46b39f6cb05ba6c0a2af1c2addc27becf939f2ddf1338fa7e78acebfcf1d6c12f03d
7
- data.tar.gz: 8ea57079bf84b9671d3a786dcc1e916e9c095413c18a3a474570a7847df88c46c49aa00a30ccf12b7918ab6a5f825e364f6df5ede2e9f6a24a69c9d4a1e39214
6
+ metadata.gz: c667c9c9e620d1c33fe258dcbcc1a315db75f4c5312b80b13f372aa9a3c5c4f1070d46c4442ae60ca9aa57f895ee449c4159e42fbac12481abdba65dc4f54df3
7
+ data.tar.gz: 8bea900f385ec256ac8538afecdaeb1b1c610b7bdce42ea139102c102ca7b9237935a780cb62a18ae60c7ba2ae3a3909b302e9ddea4441bc69c7fa2bb6d053be
@@ -46,8 +46,10 @@ class ServerMetrics::Disk < ServerMetrics::MultiCollector
46
46
  end
47
47
  @devices.each do |device|
48
48
  symlink_name = File.readlink(device[:name]) rescue nil
49
- symlink_full_path = File.expand_path(symlink_name, File.dirname(device[:name]))
50
- device[:aliases] << symlink_full_path if symlink_full_path && File.exist?(symlink_full_path)
49
+ if symlink_name
50
+ symlink_full_path = File.expand_path(symlink_name, File.dirname(device[:name]))
51
+ device[:aliases] << symlink_full_path if symlink_full_path && File.exist?(symlink_full_path)
52
+ end
51
53
  end
52
54
  end
53
55
  @devices
@@ -1,3 +1,3 @@
1
1
  module ServerMetrics
2
- VERSION = '1.2.14.pre0'
2
+ VERSION = '1.2.14.pre1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14.pre0
4
+ version: 1.2.14.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Lewis