src: fix size of CounterSet

PR-URL: https://github.com/nodejs/node/pull/16984
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Witthawat Piwawatthanapanit authored and Gibson Fahnestock committed 2017-12-20 01:58:52 +00:00
1 parent ec28fe68ad
commit c9da446533
1 file changed
+1 -1
+1 -1
View File
@@ -180,7 +180,7 @@ void InitPerfCountersWin32() {
status = perfctr_setCounterSetInfo(NodeCounterProvider,
&NodeCounterSetInfo.CounterSet,
sizeof(NodeCounterSetInfo));
sizeof(NodeCounterSetInfo.CounterSet));
if (status != ERROR_SUCCESS) {
perfctr_stopProvider(NodeCounterProvider);
NodeCounterProvider = nullptr;