win32-pdh 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/win32/pdh/counter.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6872c9a89fb6afd0797fa8c7806e70d11101e1eeb1e2fad070d6db049787c124
|
4
|
+
data.tar.gz: b12361dac0a241bffa26a3fdbcd54355ad5103bb0b73083214d0541891f9f56d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d02e87bf962c6e8cb456b8384e6315d58a710a000a5709fa2344bea3f1195b98872ade41b5086d81607f9cacf161d68b7d5e1ec4263e22c66f0c513f395006a1
|
7
|
+
data.tar.gz: e63bbe55c54fe477944b7e7242ee676e2c90952ff2dae8c9c920df3f09f566513a5a35b6cc18f44b3414db7546f5e5a750e5f209bb2fe312ca4a6932ab03ec4b
|
data/lib/win32/pdh/counter.rb
CHANGED
@@ -58,7 +58,7 @@ module Win32
|
|
58
58
|
)
|
59
59
|
end
|
60
60
|
|
61
|
-
attr_accessor :type, :version, :status, :scale, :default_scale, :full_path, :machine_name, :object_name, :instance_name, :instance_index, :counter_name, :explain_text
|
61
|
+
attr_accessor :type, :version, :status, :scale, :default_scale, :full_path, :machine_name, :object_name, :instance_name, :parent_instance, :instance_index, :counter_name, :explain_text
|
62
62
|
|
63
63
|
##
|
64
64
|
# Initializes the counter from a query and a path. This usually won't be
|
@@ -127,6 +127,7 @@ module Win32
|
|
127
127
|
@machine_name = Pdh.read_cwstr(counter_path[:szMachineName]).freeze
|
128
128
|
@object_name = Pdh.read_cwstr(counter_path[:szObjectName]).freeze
|
129
129
|
@instance_name = Pdh.read_cwstr(counter_path[:szInstanceName]).freeze
|
130
|
+
@parent_instance = Pdh.read_cwstr(counter_path[:szParentInstance]).freeze
|
130
131
|
@instance_index = counter_path[:dwInstanceIndex]
|
131
132
|
@counter_name = Pdh.read_cwstr(counter_path[:szCounterName]).freeze
|
132
133
|
@explain_text = Pdh.read_cwstr(info[:szExplainText]).freeze
|