Skip to content

Commit

Permalink
Revert all changes to wmi.c
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Apr 12, 2023
1 parent 9d12ff5 commit 06ebf96
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions psutil/arch/windows/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Functions related to the Performance Data Helper (PDH) API.
* File name from Windows Management Instrumentation API, not implemented.
* Functions related to the Windows Management Instrumentation API.
*/

#include <Python.h>
Expand All @@ -13,9 +12,6 @@

#include "../../_psutil_common.h"

/*
* Load average implementation using "\System\Processor Queue Length" counter
*/

// We use an exponentially weighted moving average, just like Unix systems do
// https://en.wikipedia.org/wiki/Load_(computing)#Unix-style_load_calculation
Expand Down Expand Up @@ -57,6 +53,7 @@ VOID CALLBACK LoadAvgCallback(PVOID hCounter, BOOLEAN timedOut) {
(1.0 - LOADAVG_FACTOR_15F);
}


PyObject *
psutil_init_loadavg_counter(PyObject *self, PyObject *args) {
WCHAR *szCounterPath = L"\\System\\Processor Queue Length";
Expand Down

0 comments on commit 06ebf96

Please sign in to comment.