Skip to content

Commit 1fdd439

Browse files
committed
process: linted code
1 parent 5d77130 commit 1fdd439

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/node_process_methods.cc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ static void ThreadCPUUsage(const FunctionCallbackInfo<Value>& args) {
147147
double* fields = static_cast<double*>(ab->Data());
148148

149149
#if defined(_WIN32)
150-
// On Windows, GetCurrentThread will return the current thread pseudo-handler, which is then
151-
// used in GetThreadTimes to retrieve the current thread timing information.
150+
// On Windows, GetCurrentThread will return the current thread pseudo-handler,
151+
// which is then used in GetThreadTimes to retrieve the current thread timing
152+
// information.
152153
// The documentation is accessible here:
153154
// https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentthread
154155
// https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadtimes
@@ -189,11 +190,11 @@ static void ThreadCPUUsage(const FunctionCallbackInfo<Value>& args) {
189190
fields[0] =
190191
MICROS_PER_SEC * usage.user_time.seconds + usage.user_time.microseconds;
191192
fields[1] = MICROS_PER_SEC * usage.system_time.seconds +
192-
usage.system_time.microseconds;
193+
usage.system_time.microseconds;
193194
#else
194-
// On other Unix / Linux, getrusage(2) with RUSAGE_THREAD is used to get
195-
// the current thread CPU usage.
196-
// The documentation is accessible by running man getrusage.
195+
// On other Unix / Linux, getrusage(2) with RUSAGE_THREAD is used to get
196+
// the current thread CPU usage.
197+
// The documentation is accessible by running man getrusage.
197198
struct rusage usage;
198199

199200
if (getrusage(RUSAGE_THREAD, &usage) == -1) {

0 commit comments

Comments
 (0)