server_metrics 1.2.14.pre0 → 1.2.14.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/server_metrics/collectors/disk.rb +4 -2
- data/lib/server_metrics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a44ceb0add726ecd87589c72c59bff97a305d1af
|
4
|
+
data.tar.gz: 238cd60bd38fed9f73fd691584dd69c0aa740c4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
50
|
-
|
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
|